Well done!

You have completed XPath review!

Quiz Question 1 of 3

Given the following HTML:

<html>
  <body>
    <div class="sample">
      <p class="sample">Hello</p>
    </div>
  </body>
</html>

How many elements would the following call return?

driver.findElement(By.xpath("//*[@class='sample']"));

Choose the correct answer below:

Skip Quiz Review Video