It’s most important concept in the context of Selenium WebDriver. Selenium WebDriver interacts with the webpages with the help these WebElements. Now the question is what actually it is? Actually each webpage contains lots of elements like textboxes, dropdowns, buttons etc. These are called the webElements. Suppose take the example of the main search page…
Category: Selenium Interview Questions and Answers
What is the use of getters and setters in java?
Getters and Setters are mainly used to hide the details about the fields of a class. Suppose we have a class, named Car. As we know, class in a blueprint of an object. So, the Car class is the blueprint of real object Car. Now Car object has engines and wheels. We are using only…
What is the Difference between groupId and artifactId in Maven
The main difference between the groupId and artifactId is groupId specifies the ID of the project group while the artifactId specifies the id of the project. So group Id is always used to identify the project group and artifactId is used to identify the specific project that is developed by that particular group of organization….
What is Data Driven Testing Techniques in Selenium?
Data-driven testing is one of the popular testing approach. Why this approach is so popular and useful? Take a real life example. Just write the test cases to test the “Username” field for the rediffmail pages. The possible test-cases at gross level are:- Test Case ID Test Case Subject Test Case Description Test Steps Prerequisites…
What is Page Object Model (POM) in Selenium?
What is Page Object Model? It’s a design pattern , which is used by many test automation projects. The Page Object is basically a class file which acts as an interface of any web page. This class contains the web elements and many methods to interacts with those web-elements. And to interact with these pages,…
What is Encapsulation in Java?
Encapsulation is a technique to hide the nature of the declared variables within a class and this variables can only be accessed from another class via some public methods. Check the below example where the variable is declared as private and this variable can only be accessed from other class by using the public methods…