Tag: selenium webdriver

Selenium Interview Question 7 – How to Select Last Five Checkboxes

This question was recently asked in a Selenium group on Facebook. Generally these types of question are asked frequently in Selenium. Select last N elements or only odd elements or only even elements or second last elements etc. Answer of all questions will be originated from same point. In this post, I will explain selecting […]

Baby Steps To Become Efficient Selenium-Java Automation Tester

Hello Folks, Many people approached me to write down my journey to become an Automation tester. So here it comes:- Be honest and ask yourself two questions given below:- Have you asked how much knowledge of programming language is needed to learn automation? If I refer any particular blog/channel/book, is that enough? If your answer […]

Validate The Validation You Do – isEnabled() & isSelected() Methods in Selenium WebDriver

Front end Automation testing is not only about Navigating/Clicking/Typing here and there. It is more about validation so that it could catch real bugs.  If we use Selenium WebDriver for front end automation, it provides methods to do some validation like isEnabled(), isDisplayed() , isSelected() etc. We must need to understand the correct usage of […]

Selenium Interview Question 4 – Difference Between @FindBy and findElement() Method in Selenium WebDriver

We can locate web element/s on a webpage using both FindBy and findElement() or findElements(). Primary purpose of both ways is same but the way it is done, is different. Below are the differences between FindBy and findElement in Selenium WebDriver: FindBy is an annotation while findElement and findElements are methods. Remember FindBy is provided […]

Selenium Interview Question 3 – Difference Between get() and navigate() Methods of Selenium WebDriver

This is the mostly asked interview question and confusing too for Selenium testers. People generally differentiate get() and navigate() methods as below: get() method holds or waits till page is loaded while navigate() does not. Above statement is NOT CORRECT. Referring official document of Selenium is always good to learn valid points. It says get() […]

TestNG Tutorials 43: Difference Between “Parameters” and “parameter” in TestNG

Hello Folks, I was asked this question in an interview and I was like “Are there two terms “Parameters” and “parameter” in TestNG?“. Yes, There are two different terms, “Parameters” and “parameter“. We have used both termas many times but didn’t notice minor thing. “Parameters” is an annotation which allows us to create parameterized methods […]

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

All Ways Of Refreshing a Webapge In Selenium

Hello folks, We have seen in last post which explains  how can we load a URL without using any get() and navigate() methods. In this post we will learn in how many ways we can refresh a web page. It is also frequently asked interview question. During developing automation test scripts, we need to refresh […]

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.