Self-test questions

  1. What is the best call to find multiple elements using XPath?
    1. findElementByXpath
    2. findElementsByXPath
    3. findElementByCssSelector
  2. What is the best call to an element using CSS selectors to find an element by using only the class name?
    1. findElementById
    2. findElementsByCssSelector
    3. findElementByClassName
  3. Will a findElements type call throw a NoSuchElementException when it can't find the element?
  4. What is the difference between an explicit wait and an implicit wait?

Get Learning Selenium Testing Tools - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.