If you have a better solution, please add your comments, code and create a PR. I will be happy to learn from you :)
- Part 1 Questions:
- In a table, there are few items with prices, How do you sum up all the prices?
- How do you click on an element providing the property like it has a name & title
- When you click on a button, a text appears on the screen, let’s say it will appear after 10, 20 seconds, or even 1 minute. So how do you handle this situation?
- Part 2 Questions:
- How to switch between 2 tabs? Is tab or window are same?
- Difference between Checked and Unchecked Exception
- Can you explain the concept of overloading and override?
- Part 3 Questions:
- How to prevent a method from override
- What is Given, When & Then ?
- What is the output ?
- Part 4 Questions:
- Name few exception that you faced in automation
- When we cannot use @FIndBY
- Write a program to find the largest number in the given array
- Part 5 Questions:
- What is the difference between close and quit?
- When we will get failure and skip in TestNG?
- What will be the output?
- Part 6 Questions:
- Where do you use Enum in your framework?
- How to print all the dropdown values?
- How to print the page title without using getTitle function?
- Part 7 Questions: 1.There is an alert with 4 buttons OK, Cancel, Yes, No. How do you handle it
- You are doing a click action using Selenium, After the click no response in the UI. What you’ll do?
- As soon as you load the QA it’s asking for username and password in the Alert. How to handle this?
- Part 8 Questions:
- Can we overload and override a static method?
- Difference between ArrayList and LinkedList?
- What is the difference between fetch and pull?