Skip to content
Selenium Basics – Selenium Interview Questions
- What are the different components of Selenium?
- What is the difference between findElement() and findElements()?
- What types of locators are used in Selenium? Which one do you prefer and why?
WebDriver & Browser Handling
- How do you handle dynamic web elements in Selenium?
- How do you handle multiple browser windows or tabs?
- How can you manage browser cookies using Selenium?
- How do you set up cross-browser testing using Selenium?
Wait Mechanisms
- Difference between Implicit, Explicit, and Fluent wait in Selenium?
- When would you use Fluent Wait over Explicit Wait?
Advanced User Interactions
- How do you handle mouse hover and drag-and-drop actions?
- How do you handle keyboard events in Selenium?
- What is the Actions class? Provide real-world usage.
Framework Knowledge
- Which framework have you used for automation (Hybrid, POM, BDD)? Explain.
- What is Page Object Model (POM)? Advantages?
- How do you handle test data in your framework?
- What is the role of TestNG or JUnit in your automation?
Handling Popups & Alerts
- How do you handle JavaScript alerts/popups?
- How do you handle file upload/download in Selenium?
Real-Time Scenarios
- How would you validate that an image is loaded on the webpage?
- You are running 100 tests. If one fails, how do you rerun only that test automatically?