Why Do We Require Browser Driver Executable File To Launch A Browser In Selenium WebDriver?

Hello Folks, It is very frequently asked interview question. Interviewer expects that you should be aware about internal logic of selenium. We know that to launch a browser through Selenium we need to download a browser driver executable file (chromedriver.exe, geckodriver.exe etc). Why do we require that? Let me relate it with a real time … Continue reading Why Do We Require Browser Driver Executable File To Launch A Browser In Selenium WebDriver?

Selenium Interview Questions: Why Do Not We Switch Back To Driver After Handling An Alert

Hello Folks, Recently this question was asked in interview to a candidate: We switch back to main window or default content after switching to a new window or frame, but not in case of Alert even we are switching to it. When we switch to a new window or frame, actually we jump to another … Continue reading Selenium Interview Questions: Why Do Not We Switch Back To Driver After Handling An Alert

What will happen if we pass NULL as argument in sendKeys() method Of Selenium WebDriver

Hello Guys, We will learn a small topic which is also an interview question in this post. What will happen if we pass NULL as argument in sendKeys() method? Above question has two answers based on how you are passing null values to sendKeys method. Way 1: Passing null directly to sendKeys method as sendKeys(null).  … Continue reading What will happen if we pass NULL as argument in sendKeys() method Of Selenium WebDriver

Creating Object Repository In Selenium WebDriver Without Using Any External Data Source

Hello Folks, We have seen Page Object Model In Selenium. In this post, I will explain a way ( Mostly what I have seen in many selenium frameworks) to design a proper page object model. It is also asked in interview that if  you have implemented encapsulation and abstraction in selenium framework. This post might … Continue reading Creating Object Repository In Selenium WebDriver Without Using Any External Data Source

How To Establish Relationship Between Pages In Page Object Model In Selenium WebDriver

Hello Folks, In interview it is frequently asked question that "How To Establish Relationship Between Pages In Page Object Model In Selenium WebDriver". It is very simple question but generally interviewee confuses. I will explain in a simple way in this post. What is establishing relations between pages? Suppose you have two pages, Page A … Continue reading How To Establish Relationship Between Pages In Page Object Model In Selenium WebDriver

Difference Between Page Object Model And PageFactory In Selenium WebDriver

Hello Folks, In this post, we will see what is difference between Page Object Model and Page Factory in Selenium WebDriver. This is also a very frequently asked interview question. Before we proceed. first go through to below posts: Introduction of Page Object Model Plain Page Object Model Page Factory After reading above posts, you … Continue reading Difference Between Page Object Model And PageFactory In Selenium WebDriver

Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Hello Folks, In last post we have seen an important topic in Selenium Webdriver which was Handling Any Types Of Listbox/dropdown In Selenium Webdriver. Method discussed in this post will work for all types of drop-down created using any tags. Mostly drop-down are created using <select> tag and Selenium provides a special way to handle … Continue reading Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Part 5: Waits In Selenium: What Happens When We Mix Sleep With Other Types Of Waits ?

Hello Folks, In this post we will learn about behavior of webdriver when we mix waits together. There are four types of waits in Selenium Webdriver. Those are: Thread.sleep() Implicit wait Explicit wait (It is also called as webdriver wait.) Fluent wait. (It is also called as webdriver wait. Every wait has its own significance … Continue reading Part 5: Waits In Selenium: What Happens When We Mix Sleep With Other Types Of Waits ?

How to handle StaleElementReferenceException Through Page Object Model(POM)

Hello Folks, This is on demand post. Many people asked me how to handle StaleElementReferenceException through Page Object Model(POM). So thought of writing a simple post on it. I am trying to automate below steps: Load URL "https://github.com/login". Type wrong username. Type wrong password. Click on submit. Type correct username. Type correct password. Click on submit. … Continue reading How to handle StaleElementReferenceException Through Page Object Model(POM)