In this article, I will list out Selenium Interview Questions 2020 along with TestNG and java questions. These are real-time interview questions faced recently from top MNC companies. If you are good with this you can go ahead and crack the interview. I didn’t add answers if you need answers then let me know. I will add but I suggest you can add based on your project related and represent with a good example then they will have a good impression.
Selenium Interview Questions 2020:
- Tell me about yourself? or Describe about yourself?
- How to handle alerts or popups and what methods you will use?
- How to retrieve the data present in the text box?
- How to handle multiple windows and what methods you will use?
- How to switch a-frames and how you handle if the webpage has frames within frames?
- How to handle broken links?
- Difference between implicitly wait and explicitly wait with examples?
- How to mouse hover sub-menu and click the element?
- How to drag and drop the element?
- How to handle drop-down and how to print all the elements present in a drop-down?
- What is a web driver?
- How to run a test case without a browser?
- What kind of reports you have been used in your projects?
- How to handle dynamic web table?
- How to handle authentication pop up?
- Difference between absolute XPath and relative XPath? which one do you prefer?
- How to handle dynamic web elements?
- How to upload and download a file?
- How to read and write data using excel?
- How do you validate whether you have clicked on the element or checkbox? or radio button?
- How to take a screenshot?
- Difference between close and quit?
- What kind of exceptions you have faced?
- Explain the line of code WebDriver driver=new ChromeDriver();
- How to handle hidden web elements?
- What are the challenges or limitations in selenium?
- What are the desired capabilities?
- How to scroll up and down a webpage?
- List out all the locators?
- What kind of framework you have been using?
TestNg Interview Questions 2020
- What are the annotations available in TestNg?
- list out execution sequence of all annotations?
- How to run failed test cases alone?
- How to run a specific group of test cases?
- How to run test cases parallel?
- How to skip or ignore a few test cases?
- What is a data provider? How it will be useful?
- How to set priority for a few test cases?
- List out commonly used TestNG Assertions?
- How to run all test cases?
Java Interview Questions 2020
- Tell me about the oops concept and where you have been applied in ur project?
- Difference between method overloading and overriding
- What is the use of static keyword?
- Tell me about access specifiers?
- What is the use of a super keyword?
- What is the inner class?
- What is an interface?
- Difference between interface and abstract class?
- What is the parent of all the classes?
- What is inheritance? Why it is not supported by multiple inheritance?
- What are the string methods?
- Difference between local and instance variable?
- Difference between list and set?
- Difference between HashMap and HashSet?
- Difference between HashMap and HashTable?
- Difference between array and ArrayList?
- Write a program for the Fibonacci series?
- Write a java program to find the sum of n numbers?
- Write a java program to print even/odd/prime numbers?
- Write a java program to reverse a string?
- Write a program to print the count of characters in a given string?
- Write a program to find duplicate words in a given string?
- Write a program to print the smallest or largest number from an array?
Please go through each and every question with an example and do practice and attend the interview confidently. I assure you will definitely clear the interview in 2 to 3 attempts.
All the best guys 👍