Well done!

You have completed WebDriver Basics!

Quiz Question 1 of 3

Considering the following HTML:

<html>
  <body>
      <p>Hello world!</p>
  </body>
</html>

Choose the method that helps the driver to locate the requested WebElement.

const element = driver._________(By.xpath("/html/body/p"));

Choose the correct answer below:

Skip Quiz Review Video