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

Selenium Interview Question 2 – Can Selenium Be Used For API Automation?

Selenium official website introduce Selenium as “Selenium automates browsers. “. A browser is an interface or abstraction between “How it looks?” (Front end of an application) and “How something is actually performed?” (Middleware and backend of an application). Selenium is for “How it looks?” part of an application only. Selenium is designed to automate front

Read More

Selenium Interview Question 1- What is Selenium?

The best definition of Selenium I found at its official website. It says – Selenium Automates Browser. We can automation the flows of a web based application ( An application which runs inside a browser) using Selenium. Primarily it is used to automate testing process of a web application but you can use Selenium beyond

Read More

Integration of Apache POI Java Library in a Java Project – Direct Download & Using Maven or Gradle

Hello Guys, We have seen Introduction of Apache POI in previous post. In this post we will see below topics: Integration of apache POI libraries using Direct download Integration of apache POI libraries using Build automation tool Maven Integration of apache POI libraries using Build automation tool Gradle ( This we will see in a

Read More

TestNG Tutorials 57: DataProvider in TestNG – Passing External Data File Name to DataProvider Method Using TestNG xml

In last post, we have learnt how can we make parameterized DataProvider method in TestNG to provide test data to multiple Test methods from single DataProvider method. Let’s make it more customised. Suppose you need to read data from external file like Excel, properties file etc in a DataProvider method. The name of external file

Read More

TestNG Tutorials 56: DataProvider in TestNG – Parameterizing DataProvider Method to Provide Data to Multiple Test Methods

“DataProvider” is an important feature provided by TestNG to provide required test data to test methods to run on. We have learnt different approaches which we can utilize to get best of DataProvider in previous posts. Let’s learn another way to make more use of DataProvider in TestNG. Suppose we have three Test methods and

Read More

TestNG Tutorials 42: Parameters In TestNG or Parameterization of Methods in a TestNG Class

Hello Folks, Arguments or Parameters help us to achieve reusability of codes and cleanliness of codes. We can do overloading of methods using different number, types and order of parameters to serve differently for different set of values. TestNG also allows you to parameterized your tests. We will see how can we achieve parameterisation of 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.