Selenium & WebDriver

  • What is Page Object Model (POM)?

    A design pattern where each page of the application is represented by a class. The class contains elements (locators) and methods to interact with them, separating test logic from UI details.

  • Explain Implicit vs Explicit vs Fluent Wait.

    Implicit: Default wait time for all elements. Explicit: Waits for a specific condition (e.g., visibility). Fluent: Explicit wait with polling interval and ignored exceptions.

  • What are the different Locators in Selenium?

    ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector, XPath.

  • Difference between driver.close() and driver.quit()?

    close() closes the current focused window. quit() closes all windows and ends the WebDriver session.