0
<td class="datepickerSelected">   
<a href="#">   
<span>21</span>   
</a>   
</td>  
 <td class="">   
<a href="#"> 

如何在变量中获取 csscount/xpath 计数并增加计数以指向下一个位置。

4

1 回答 1

0

您可以使用 storeXpathCount 命令将计数存储在变量中。(参考:http : //software-testing-tutorials-automation.blogspot.in/2013/06/using-storexpathcount-in-selenium-ide.html )然后使用带有字符串的存储命令,如 javascript{storedVars.MyVar++;}增加变量的值。(参考: http: //software-testing-tutorials-automation.blogspot.in/2013/07/steps-for-data-driven-testing-with.html

于 2013-10-18T01:51:14.270 回答