Selenium Automation Preparation Questions
Selenium Automation Preparation Questions
Questions
WebDriver Methods
Explain the difference between get() and navigate().to() in Selenium WebDriver.
What is the purpose of manage().timeouts() method? Provide an example.
How do you handle browser windows and tabs in Selenium?
What method would you use to close the browser window, and how is it different from
quit()?
WebElement Methods
How do you retrieve the text of a WebElement in Selenium? Provide code as an example.
Explain the use of sendKeys() and clear() methods in Selenium WebDriver.
What is the difference between isDisplayed(), isEnabled(), and isSelected() methods?
How would you retrieve the value of an attribute from a WebElement?