| Next Exercise >> | ||
|---|---|---|
| Step 1: Read XPath Question → Step 2: Check HTML Source Code → Step 3: Enter XPath Syntax in O/P Box | ||
<div> <p>Paragraph one</p> <h1>Heading 1 </h1> </div>
Paragraph one
Using Double Slash
Syntax : //tagname
Where tagname is the name of the HTML element you want to search for.
Examples:
1) //p
2) //form/div[1]/div/div[1]/div/div/input[1]
Make fake names, emails, and more fast and easy.
Download in CSV, JSON, or SQL Format.
Try It Now