Selenium Automation Testing Interview Questions: In this post, we are going to share some of the frequently asked Selenium Automation Testing Interview Questions for freshers & experienced testers.
Here is the list of most frequently asked Selenium Automation Testing interview questions. Also, We have listed some of the commonly Asked Practitioner Skills based on our experience which are essential for fresher testers to gain excellent preparation in case this topic comes at the interview stage.
As we all know that selenium is mostly used to automate browser-based web applications. So, to describe the concepts and describe some of its features, we have provided one or all such questions which are asked in the interview along with their answer as well.
The most used web browser for testing is chrome, firefox, and edge browsers with operating systems like Windows, MAC & Linux. So the below Java Selenium Automation Testing Interview Questions are based on the Selenium tools like Selenium Web driver, Selenium IDE, Selenium Grid & RC.
Selenium Automation Testing Interview Questions
- Is Selenium 2.0 different from Selenium 3.0? If so, how?
- Explain XPath?
- What are the test types supported by Selenium?
- How many types of WebDriver APIs are available in Selenium?
- What is an exceptional test in Selenium?
- What is POM (Page Object Model)? What are its advantages?
- What are the different types of annotations used in Selenium? Explain the JUnit annotation linked with Selenium.
- What are the four elements that you have to pass in Selenium?
- What are the data-driven frameworks and keyword-driven frameworks?
- Difference between getwindowhandles() and getwindowhandle() ?
- Can you arrange the below testng.xml tags from parent to child?
- How to pass parameters through the testng.xml file to a test case?
- What is TestNG Assert and list out common TestNG Assertions?
- How can we create a data-driven framework using TestNG?
- Explain Java Main Method public static void main (String[] args)
- Explain OOPS concepts in Java?
- Explain the Java Collections Framework.
- What do you know about the Hierarchy of Collections in Java?
- Are you aware of the uses of the List Interface?
- How will you convert a string array to an ArrayList?
- intpasrcomvert
- intparconvert
- I want to add a null element to HashSet and TreeSet. Can I?
- What do you know about LinkedHashSet?
- Write a java program to find the highest occurrence of characters in a given word for example if the word is Nayar the output is a:2 and if the word is “aabbc” the output is “a:2,b:2”.
- How do you handle windows in selenium?
- The login should be done manually, from the home page u need to execute the scripts, how?
Java Automation Testing Interview Questions
- What is an abstract class?
- What is the difference between abstract and interface?
- Purpose of constructor in Java?
- Can abstract class have a constructor?
- Is it possible to create an object for abstract class?
- What is the difference between collection and collections?
- What is set?
- What is the difference between Hast Set and Tree Set?
- What is the difference between Hashmap and Linked Hashmap?
- How do you initiate a therad?
- Do you know threads concepts?
Selenium Interview Questions I faced in a recent interview.
- How to Exclude test cases which don’t want to run.
- How to Iterate Map.
- String str=” this is your order number 123456″
- How to fetch the only number from this string.
- How to handle steal element exception.what you will write in the catch block
- How to find 2 maximum number from the array.
- How to remove all space from the array.
- Difference between ArrayList and Map
- If sendkeys is not working what you will do any other alternative?
- How to remove duplicate from the string.
<div> <button id="sdf"> <div id="vxvxcv"> </div>
- Write XPath to find the first div.
- Write code that gets all the links and click on every link.
- 5 Exception in selenium.
- Rest Assured code.
- The SQL query to find the top 10 rows from the table.
- Advantage of cucumber framework
- Other BBD tools apart from the cucumber.
- How to achieve parametrization in cucumber.
- How to get all links from a webpage
- How to get all broken links from the webpage
- How to find hidden elements from UI
- Use of robot class.
- How to convert date in another formate .20192207- 2019-22-07
- WebDriver Listeners and TestNG Listeners
- Taking data from an excel sheet is slow so what is the alternative.
- Cucumber dependency is language-specific or not?
- Protector.?
- TestNG Annotation order.
Automation Testing Interview Questions For Freshers
- Write code for Action class
- Write code for positive and negative scenarios for Alerts
- Write code for handling multiple windows
- Find an odd number
- Disadvantages of Selenium
- Difference between get() and navigate().to()
- Write code to click on the Checkbox which is inside the Dynamic Table
- Write code for taking Screenshot
- Explains Maps in Java
- Explain framework (Questions based on your framework explanation)
- What is Pom.xml
- Which is the correct Xpath for this code (Lot of questions on Xpath)
- Xpath methods Ex: Starts-with & Contains
- The syntax for a CSS selector
- How to identify dynamic images
- From a given string, separate characters, integers, and special characters and store in a separate variable and print them
- Remove duplicates from ArrayList
- Print all the frame names
- How to read from XML or CSV file and store in hashmap
- Get the value of a cell in the Dynamic table
- What is the Burndown chart (Agile)
- Print these characters from a given string and change them to uppercase
- Explain Access specifiers
- Difference between Priority and Severity
- Example of High Priority and Low Severity and vice versa
- Difference between Test Strategy and Test Scenario
- What Software Metrics you have used in your project
- How to handle Dynamic Elements, since the webpage is designed in Angular Js
- Implicit and Explicit Waits
- Write code for Cross Browser Testing
- Explain Method Overloading and Method Overriding with Example
- What is Static Keyword
- Dependencies in Pom.xml
- Write code for fetching data from Excel
- Select this value in the dropdown and hover to this element and click
- Assert and Verify
- Check if a given string is Palindrome or not
- Remove duplicate characters from a string and print
- Which Code Repository you are using (Ex: GitHub)
Automation Testing Interview Questions For 5 Years Experience
- What is the use of the ‘super’ keyword inside a constructor?
- Explain the concept of proper inheritance?
- What are abstract classes and anonymous classes?
- When should a function throw an exception?
- How can you insert values in multiple rows using one Insert statement?
- Explain access specifiers?
- What are TCP/IP protocols?
- What are near, far, and huge pointers?
- Explain the waterfall model?
- Difference between Linked list and Queue?
- What are bitfields? What is the use of bit fields in a Structure declaration?
- Write an algorithm for quick sort?
- What is cursor?
- Difference between rowid and rownum in SQL?
- What are the different synchronization mechanisms?
- Can a static member function access the member variable of an object?
- What is the difference between the member variable’s initialization and assignment in a constructor?
- What is the use of the ‘classpath’ environment variable?
- What is the use of StringTokenizer class?
- Today is Monday. After 61 days, it will be?
- Difference between operator overloading and function overloading
- Can you instantiate an abstract class and what is an inner class?
- When do you call copy constructor?
- How can you swap values between two rows in a table using a single- SQL statement?
- What is the type of this pointer?
- What do you mean by data hiding?
- What is Function Overloading?
- What is SDLC?
- Explain the key functions of data binding.
Leave a Reply