好吧,首先代码:另一个Xpath的困境
<tr class="tableControlDataRow evenRow twTableTR">
<td class="twTableTD details" align="center" rowspan="2">
<td class="twTableTD details" align="center" rowspan="2">
<p>
<br>
**<p>**
<b>Model Number:</b>
QA GM 05132014 1038 Item 1 Model Number
</p>
<p>
<p>
<p>
<p>
</td>
<td class="twTableTD" align="center" rowspan="2">May-27-2014</td>
<td class="twTableTD" align="center">France</td>
<td class="twTableTD" align="center">Yes</td>
<td class="twTableTD" align="center">
<input id="hiddenCountryAuthorizationField0_0" type="hidden" name="tw#local#quoteComparison#0#country#0#authorizationStatusId#" value="0">
<input id="CountryAuthorizationYES0_0" class="qclCheckbox" type="checkbox" onclick="chooseAuthorization(0,0,'Yes','1')">
Yes
<br>
<input id="CountryAuthorizationNO0_0" class="qclCheckbox" type="checkbox" onclick="chooseAuthorization(0,0,'No','2')">
No
<br>
</td>
现在的问题......我已经做了
//p[contains(., "QA GM 05132014 1038 Item 1 Model Number")]
这让我的**部分找到正确的出发点的代码。现在我需要遍历到<tr class="tableControlDataRow evenRow twTableTR">
顶部,然后乘车返回环比下跌点击
<input id="CountryAuthorizationYES0_0" class="qclCheckbox" type="checkbox" onclick="chooseAuthorization(0,0,'Yes','1')">
文本框。有什么建议么?
试过在FirePath并没有返回匹配的节点... – GregMa
@GregMa可能大家分享一个链接到你解析的页面? – alecxe
它是内部的,所以不能。但我确实弄清楚了。看起来像我粘贴的代码是不正确的。我使用@id,'CountryAuthorizationYES',它工作。 – GregMa