Automation Testing Intern Interview Questions & Answers
40 questions for Automation Testing Intern interviews — 25 easy, 15 medium.
About the Automation Testing Intern role
Supports the QA team by writing simple automated tests, updating locators, running suites and reporting results, while learning the framework. Interviews check basic Java (OOP, strings, collections), Selenium fundamentals, common TestNG annotations, manual testing concepts and willingness to learn. A small personal project on GitHub makes a strong impression at this level.
How do you test that a method throws an expected exception in TestNG?
Show answer
A TestNG test passes when run alone but fails when the full class runs. What do you check?
Show answer
Your Selenium tests in CI produce blank screenshots in headless mode. What could be wrong?
Show answer
Describe a time you convinced developers to fix a problem found by automation.
Show answer
What is the difference between getText() and getAttribute()?
Show answer
Implicit vs explicit vs fluent wait?
Show answer
Why do you want to work as an automation tester rather than a manual tester?
Show answer
What are wrapper classes in Java?
Show answer
Write Java code to find the second largest number in an integer array.
Show answer
A test fails with TimeoutException waiting for an element that is clearly visible on screen. What do you check?
Show answer
How do you scroll a page in Selenium?
Show answer
What is the execution order of TestNG annotations?
Show answer
What is TestNG and why is it used with Selenium?
Show answer
ArrayList vs HashMap — how do you use them in a framework?
Show answer
Method overloading vs overriding?
Show answer
Write Java code to find duplicate elements in a list.
Show answer
What are exceptions and how do you handle them?
Show answer
Selenium's driver version suddenly mismatches the browser version on agents. How do you prevent this?
Show answer
How do you run the same test with data from Excel using a DataProvider?
Show answer
How do you handle a browser basic authentication pop-up in Selenium?
Show answer
What is the timeOut attribute in TestNG?
Show answer
Write Selenium code to wait for a loader to disappear and then click a button.
Show answer
Tell me about a time you had to learn Java quickly for an automation role.
Show answer
How do you handle dropdowns in Selenium?
Show answer
Write Java code to count the occurrences of each character in a string.
Show answer
How do you include and exclude groups in testng.xml?
Show answer
What are try-with-resources and why use them?
Show answer
How did you handle it when your test estimates turned out to be wrong in a sprint?
Show answer
An assertion on element text fails even though the text looks identical on screen. What could be the reason?
Show answer
What is method overriding and where is it useful in frameworks?
Show answer
Reverse a string in Java.
Show answer
What is Selenium Grid and why use it?
Show answer
What is WebDriver and how does it communicate with the browser?
Show answer
How does HashMap work internally?
Show answer
What locators does Selenium support?
Show answer
What new features came with Selenium 4?
Show answer
What is the purpose of testng.xml?
Show answer
How do you handle alerts and pop-ups?
Show answer
A teammate compares two strings with == and the test sometimes passes and sometimes fails. Explain.
Show answer
Frequently asked questions
What does a Automation Testing Intern do?
Supports the QA team by writing simple automated tests, updating locators, running suites and reporting results, while learning the framework. Interviews check basic Java (OOP, strings, collections), Selenium fundamentals, common TestNG annotations, manual testing concepts and willingness to learn. A small personal project on GitHub makes a strong impression at this level.
Which skills are tested in a Automation Testing Intern interview?
Expect questions on Core Java basics, Selenium basics, TestNG annotations, Git basics, Bug reporting. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Automation Testing Intern interview?
Revise Core Java for Testers, Selenium WebDriver, TestNG Framework first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.