Selenium WebDriver Cheat Sheet 2026

The 30 highest-yield Selenium WebDriver facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.

  1. Which driver implementation is used for Microsoft Edge in Selenium 4? EdgeDriver
  2. Which class is used to configure Chrome-specific options in Selenium WebDriver? ChromeOptions
  3. Which XPath function is used to find elements whose attribute value contains a specific substring? contains()
  4. How should an Selenium WebDriver professional handle a situation outside their scope of competency? Recognize limitations and refer to or consult with appropriate specialists
  5. When `driver.findElement(By.tagName("input"))` is called and multiple `` elements exist on the page, what happens? It returns the first matching input element in DOM order
  6. Which Selenium component is used to run tests in parallel across multiple browsers? Selenium Grid
  7. What does the 'script' timeout control in WebDriver? How long to wait for asynchronous JavaScript to execute
  8. What is a FluentWait in Selenium WebDriver? A configurable wait that can ignore specific exceptions and set polling frequency
  9. What does driver.manage().getCookies() return? A Set of all cookies for the current domain
  10. Which locator strategy is generally considered the most reliable for identifying web elements in Selenium WebDriver? ID
  11. How do you close only the current browser window (not the entire session) in WebDriver? driver.close()
  12. What does driver.manage().window().maximize() do? Maximizes the browser window to fill the screen
  13. In Selenium WebDriver, which method returns all elements matching a locator as a `List`? driver.findElements()
  14. What is the role of professional journals in Selenium WebDriver practice? They disseminate current research, best practices, and professional developments
  15. Which approach best demonstrates professional competency in Selenium WebDriver practice? Integrating continuing education, practical experience, and evidence-based decision making
  16. Which method sends keyboard input to a WebElement? element.sendKeys()
  17. Selenium WebDriver does not support which of the following programming languages? ASP.NET
  18. Which tool is commonly used for root cause analysis in Selenium WebDriver quality management? Fishbone (Ishikawa) diagram to identify contributing factors systematically
  19. What is the function of the Web Driver? To execute on the HtmlUnit browser
  20. Which locator strategy in Selenium WebDriver finds elements when only part of the anchor text is known? By.partialLinkText()
  21. Which DesiredCapabilities setting accepts SSL certificates in older WebDriver versions? acceptInsecureCerts
  22. What is the purpose of a WebDriver RemoteDriver? To run tests on a remote machine or Selenium Grid node
  23. Which method scrolls an element into view using JavascriptExecutor? js.executeScript('arguments[0].scrollIntoView(true)', element)
  24. How do you add a cookie to the browser session in WebDriver? driver.manage().addCookie(new Cookie('name', 'value'))
  25. What exception is thrown by `driver.findElement()` when the specified element cannot be found on the page? NoSuchElementException
  26. What does `driver.findElements()` return when no matching elements are found on the page? An empty list
  27. How do continuing education requirements benefit Selenium WebDriver certified professionals? They ensure professionals stay current with evolving industry practices and knowledge
  28. What is the first step in risk assessment for Selenium WebDriver professionals? Identifying potential hazards and vulnerabilities in the specific context
  29. Which By locator would you use to find an element with the HTML attribute `name="username"`? By.name("username")
  30. What is the most effective communication approach for Selenium WebDriver professionals? Adapting communication style to the audience while maintaining accuracy and clarity