1) Rate yourself out of 5 in Java, Selenium, and Cucumber.
2) Tell me about yourself.
3) What are your roles and responsibilities in your current/previous role?
4) Can you explain the framework you’ve worked with?
5) Explain the different ways to handle dropdowns in Selenium.
6) Give a scenario where you need to click on Electronics in Flipkart using the Action class.
7) What is Polymorphism in Java?
8) What is an interface in Java?
(May ask for deeper details based on your answer)
9) What is Cucumber, and how does it fit in your testing strategy?
10) What is the difference between Scenario Outline and Data Tables in Cucumber?
11) Explain what Hooks are in Cucumber.
12) What is Tagging in Cucumber, and how is it useful?
13) What is the difference between Dry Run and Strict in Cucumber?
14) Does Cucumber support TestNG?
15) What is encapsulation? Provide an example with code.
16) Write a Java program to find duplicate characters from a word without using for loops.
17) Explain the use of an object repository in Selenium (.properties file).
18) How do you store data in a .properties file?
19) What is Page Factory in Selenium?
20) What is the difference between @BeforeClass and @BeforeTest in TestNG?
21) What are the tasks typically written under the @BeforeTest annotation?
22) How can you skip a test case in Cucumber?
23) How do you rerun failed test cases in TestNG?
24) How do you group and run test cases in TestNG?
25) What would you include under the @BeforeSuite annotation?
26) Can you explain the different locators used in Selenium?
27) What is a collection in Java?
28) Explain the hierarchy of exceptions in Java.