Selenium Webdriver Interview Questions with Answer
1. Selenium doesn't support __________ to write programs (Test Scripts) a) Java b) Perl c) VBScript d) Python 2. __________ is an Advantage of Selenium WebDriver? a) Supports Web based Applications only b) No built-in Result Reporting facility c) Open Source d) No IDE 3. In webdriver, which methods navigates to a URL? a) goToUrl("url") b) navigate.to("url") c) getUrl("url") d) get("url") 4. Which of the following is the correct ‘Webdriver’ command to “delete all cookies in the browser”? a) Driver.deleteAllCookies() b) Driver.manage().deleteCookies() c) Driver.manage().deleteAllCookies() d) Driver.deleteCookies() 5. In webdriver, which of the following is a valid select statement that selects a value from a dropdown element? a) All of the listed options b) selectByIndex() c) selectByValue() d) selectByVisibleText() 6. In webdriver, selectAllOptions() is a valid command. a) True b) False 7. In webdriver, whic