Xpath samples with what they grab
Sample |
Xpath |
<div id="soasta-password" style="display:none">rogxWFmmYR</div></div> |
//*[@id='soasta-password'] |
<input type="hidden" name="form_build_id" id="form-5287344f04574e13fe662dce074dc3fa" value="form-5287344f04574e13fe662dce074dc3fa" /> |
//*[@name='form_build_id']/@value |
name=form_token id=edit-form-token value=92b837a209278461ab88190c8e912af6 |
//*[@name='form_token']/@value |
<li class="leaf" id="menu-leaf50000Myaccount21"><a href="/user/16">My account</a></li> |
//li[@id='menu-leaf50000Myaccount21']/a/@href (extracts the /user/16 portion) |
Good tool to troubleshoot xpath: xpather (add-on for Firefox)