Advertisement
easternnl

XPath issue with IFrames and Chrome

Jul 9th, 2018
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.40 KB | None | 0 0
  1. <html>
  2. <!--
  3. Looking for an xpath is not working properly when using IFrame. Save this file as xpath-test.html on a webserver and open it.
  4.  
  5. Then try the following xpath: (//a[@class="testx"])[1]
  6.  
  7. You wil get at least two results
  8. -->
  9. <body>
  10. <a class="testx" href="xpath-test.html">test</a>
  11. <a class="testx" href="xpath-test.html">test</a>
  12.  
  13. <iframe src="xpath-test.html">
  14. </iframe>
  15. </body>
  16. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement