Top 100 Selenium Interview Questions 2021
In this article we will be sharing Top 100 Selenium Interview Questions 2021. If you are from a testing background and willing to learn about Automation, then Selenium should possibly be the first tool you should learn, considering you know the basics of Java or any other programming language. All the companies nowadays looks for Selenium, it is a key skill if you want to pursue your career in Software testing.
Top 100 Selenium Interview Questions 2021
- Explain your framework with Architecture
- What is the flow of your framework
- What are the different types of Exceptions available in Selenium? Have you faced any Exception while automating a web page?
- How to handle Multiple windows using Selenium?
- Explain Selenium Architecture
- What do you understand by cross browser testing?
- Why do we require different drivers for different browsers?
- What is POM and why do we need it?
- How do you handle popups using Selenium?
- How do you handle frames using Selenium?
- How to count number of frames in a webpage?
- How to Switch on the frames?
- What are different locators used in Selenium?
- How to handle dynamic changing webelements?
- How to verify checkboxes such as - is enabled/ disabled/ unchecked/ displayed/ not displayed?
- How to identify all checkboxes and click on it?
- How to deal with a dropdown using Selenium?
- How will you handle Calendar using Selenium? What would be your approach?
- How to click on a particular element in a table?
- Explain Navigation commands in Selenium?
- What is the difference between Quit and close?
- How do you find the number of links available in the webpage?
- How do you find out number of rows available on the table?
- How do you find out number of cells available on the table?
- Find out total number of text boxes in a webpage?
- Find out total number of menu available in a webpage?
- What is page load timeout?
- Difference between implicit wait, explicit wait and fluent wait? Which one do you often use?
- What do you understand by Javascript Executor and where have you used it?
- How do you capture screenshot using Selenium?
- What do you understand by Web driver listener?
- How do you scroll in a webpage using Selenium?
- How do you upload files using Selenium? Have your ever used AutoIT?
- How to handle untrusted certificates using Selenium?
- What do you understand by Actions class in Selenium? How do you perform Mouse Hover, Keyboard events, drag and drop?
- What do you understand by OOPS?
- What is an interface and why do you use it?
- What is an abstract class? And why do we use it?
- What is the difference between Abstract class and Interface and a normal class?
- What do you understand by Polymorphism?
- What is method overloading and overriding?
- Explain static and non-static member?
- What is the difference between Final, Finalize and finally keywords?
- What is the difference between equals and == operator?
- What is the difference between String, StringBuffer and Stringbuilder?
- What is the difference between String s = new String() and String s = " "
- Explain how to handle exceptions in Java?
- What is try, catch and finally ?
- What is the difference between Throw and Throws?
- What is Collection?
- What is List?
- What is the difference between ArrayList and LinkedList?
- What is the difference between List, Set and Map?
- What is the difference between Vector and ArrayList?
- What is the difference between Hash map and Hash table?
- What is the difference between Collection and Array?
- Where is Collection and where do you intend to use it in Selenium?
- What is the difference between HashSet and Linked HashSet?
- What is iterator in Java?
- What is the difference between list iterator and iterator?
- What is the default capacity of ArrayList and HashTable?
- What is the difference between Constructor and Method?
- What is the difference between this and Super keywords?
- How to sort employee class using comparator?
- What is super class in Java and explain all methods of Super class?
- Does Java support multiple inheritance?
- What is Abstraction?
- What is Encapsulation?
- Can we override main or Static method in Java?
- What is method hiding?
- What is the difference between Comparable and Comparator?
- What is tree-set?
- What is dictionary in Java?
- Write a program to count characters in String
- Write a program to divide chars and integers in given String - "3g5dg65gfr"
- Write a program to demonstrate Hash map Iteration?
- Write a program to remove duplicate characters in a string?
- Write a program to read and write in a file?
- Write a program to demonstrate list to Map conversion?
- Write a program to find maximum number in an array?
- Write a program to find missing number in an array?
- Write a program to demonstrate reading and writing in Excel?
- Explain Serialisation and Deserialisation concepts using an example?
- Find the greatest number from the integers list, a = 30, b = 40 and c = 10
- Write a program to reverse the strings in String Array - {"India", "US", "UK", "Canada"}
- Write a program to sum up the digits, for example 89829, output = 36
- Write a program to print current date and time?
- Write an example of Synchronisation method?
- Write a program to print second largest element in an array
- Write a program to remove duplicate elements from the Array list?
- Write a program to sort integer in an ascending or descending order?
- String to integer and integer to String conversion?
- Write a program to reverse array list elements?
- Write a program to swap 2 variables using third variable?
- Write a program to remove all the whitespaces from a string without using replace() method?
There could be lot more questions than listed above! Software testing industry is still growing strong! You are valued only if you gain skills which are trending in the market. We wish to cover CI/CD, Cloud concepts as well because industry is demanding SDET or FSD nowadays.
For Questions on basis of company, Kindly follow below URLs -
Two highly asked programming questions. this is what i observed.
1.Remove duplicate number from a given array.
2.reverse a string.
Below are some of the stats that might help you if you are looking out for more opportunities
- 92% interviews are on automation testing.
- At least one programming question is asked in all interviews.
- Min 2 programming questions were asked in 63% interviews.
- String based programming questions are mostly asked.
- Arrays based interview questions are second.
- Data structures were asked in 30% interviews.
- Testing related questions ratio is 2:10.
- Selenium/API framework questions were in all interviews.
- Sql and unix are commonly asked.
- You are expected to know cloud based technologies.
- Questions on API testing are asked in 47% interviews.
- Questions on Jenkins, maven, Git in 86% interviews.
- Selenium vs Java questions ratio is 3:10.
Comments
Post a Comment