【发布时间】:2014-09-16 21:26:08
【问题描述】:
我正在使用动态网站,ID 可用于动态 guid。谁能解释我如何编写手动 xpath 来查找网站中的元素?
<input id="JointInsureds_1e124dce-7492-4315-b1d8-7b806babd994__ForeName"
type="text"
value="" name="JointInsureds[1e124dce-7492-4315-b1d8-7b806babd994].ForeName"
maxlength="20"
data-val-required="The First Name field is required."
data-val-length-max="20"
data-val-length="The field First Name must be a string with a maximum length of 20."
data-val="true"/>
【问题讨论】:
-
你尝试过像contains这样的XPath函数吗?