Category: Selenium: Interview Questions

TestNG Tutorials 32: Customizing TestNG xml For Methods Belong to Multiple Group Names

Hello Folks, In last post, we learnt about Multiple groups names foe test and configuration methods. When we assign a method to multiple groups, you find difficulties when you want to run methods belong to only particular groups or to only some groups. For example: Suppose There are three methods M1 ( belongs to G1), […]

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 […]

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 […]

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).¬† […]

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 […]

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 […]

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 […]

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 […]

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 […]

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. […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.