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

Read More

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()

Read More

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

Read More

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),

Read More

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.