[英]Selenium Webdriver xpath to find element
<a style="color:White;" href="javascript:__doPostBack('dnn$ctr674$Case$gvCaseSearchDetails','Page$7')">7</a>
How to write xpath for the above HTML code in which Page$7 finds the element uniquely and the xpath should find multiple elements through the xpath. 如何为上面的HTML代码编写xpath,其中Page $ 7唯一地找到元素,xpath应该通过xpath找到多个元素。 Please do the needful Thank in Advance :-)
请做必要的感谢提前:-)
The following code will do the trick 以下代码将起到作用
//a[contains(@href,'Page$7')]
This is your basic XPath expression. 这是您的基本XPath表达式。 You should probably read up on that.
你应该读一读。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.