T
Tech Mahindra Interview — Selenium
February 21, 2026
- Company
- Tech Mahindra
- Experience
- 3-4 years
- Round
- Other
Questions Asked
15 questions- 1.How do you handle frames and iframes in Selenium?
- 2.What is the Page Object Model (POM)? Why is it used?
- 3.Write a Page Object class for a login page.
- 4.How do you take screenshots in Selenium?
- 5.What is TestNG? How is it different from JUnit?
- 6.Explain TestNG annotations (@Test, @BeforeTest, @AfterTest, etc.).
- 7.How do you run tests in parallel using Selenium Grid?
- 8.How do you handle dynamic elements in Selenium (elements with changing attributes)?
- 9.What is the difference between findElement() and findElements()?
- 10.How do you perform mouse hover actions in Selenium? Use Actions class.
- 11.