1. What is Selenium WebDriver?
- ❌ A tool for manual testing only
- ✅ A browser automation framework
- ❌ A database migration tool
2. Which language is NOT supported by Selenium WebDriver?
- ❌ Java
- ❌ Python
- ✅ PHP
3. What does `driver.get(\"URL\")` do?
- ❌ Submits a form
- ✅ Opens the given URL in the browser
- ❌ Takes a screenshot of the page
4. Which WebDriver method is used to locate an element?
- ❌ findNode()
- ✅ findElement()
- ❌ getElementByTag()
5. What is the purpose of `driver.quit()`?
- ✅ Closes all browser windows and ends the session
- ❌ Closes only the current tab
- ❌ Restarts the WebDriver
6. Which of the following is a valid locator in Selenium?
- ✅ By.id()
- ❌ By.url()
- ❌ By.windowName()
7. How do you perform a click action in WebDriver?
- ❌ .press()
- ❌ .select()
- ✅ .click()
8. What is the use of `WebDriverWait`?
- ✅ To wait for an element to become available before acting on it
- ❌ To pause the browser permanently
- ❌ To refresh the DOM
9. What does `driver.switchTo().alert()` do?
- ❌ Switches to a new tab
- ✅ Handles browser alert pop-ups
- ❌ Opens a new browser window
10. Which driver is used for automating Chrome browser?
- ❌ SafariDriver
- ✅ ChromeDriver
- ❌ InternetExplorerDriver