← Back to homeTech Mahindra Interview Questions Asked in Real Interviews
Recent interview reports and questions from Tech Mahindra candidates.
T
Tech Mahindra
Experience: 3-4 years
26 days agoSeleniumOther
Questions:
- 1.How do you handle frames and iframes in Selenium?
What is the Page Object Model (POM)? Why is it used?
Write a Page Object class for a login page.
How do you take screenshots in Selenium?
What is TestNG? How is it different from JUnit?
Explain TestNG annotations (@Test, @BeforeTest, @AfterTest, etc.).
How do you run tests in parallel using Selenium Grid?
How do you handle dynamic elements in Selenium (elements with changing attributes)?
What is the difference between findElement() and findElements()?
How do you perform mouse hover actions in Selenium? Use Actions class.
How do you perform drag and drop in Selenium?
What is data-driven testing? How do you implement it using Excel or CSV?
How do you handle SSL certificate errors in Selenium?
What are the challenges you faced in Selenium automation? How did you overcome them?
How do you integrate Selenium with CI/CD tools like Jenkins?