daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <h3>Ignore h3</h3>
  2.   <p>Ignore p</p>
  3.   <h2>Locator</h2>
  4.   <h3>Header 1</h3>
  5.   <p>Paragraph 1.1</p>
  6.   <h3>Header 2</h3>
  7.   <p>Paragraph 2.1</p>
  8.   <p>Paragraph 2.2.</p>
  9.   <p>Paragraph 2.3.</p>
  10.   <h4>test header 4</h4>
  11.    
  12. //h2[contains(text(),'Locator')]/following-sibling::*
  13.    
  14. //h2[contains(text(),'Locator')]/preceding-sibling::*[1]/following-sibling::*
  15.    
  16. //*[preceding-sibling::h2[.="Locator"]] | //h2[.="Locator"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top