Command : clickAndWait
Target : some xpath of the location
在selenium IDE中执行此命令后,将数据加载到页面中需要花费大量时间。所以在IDE的日志中,我可以看到'Timed out after 30000ms'
。
是否可以增加/减少30000ms的值?
Command Target Value
click id=ext-gen007
waitForPageToLoad 60000 wait for one minute
click id=ext-gen008
waitForPageToLoad 60000 wait for one minute
click id=ext-gen009
waitForPageToLoad 60000 wait for one minute
我正在使用Selenium IDE 1.8.1,如上所述进行编辑后会出现错误'Timed out after 60000ms'
答案 0 :(得分:4)
在Selenium2 / Webdriver中,您必须使用setTimeout(long milliseconds)
使用Selenium,你必须使用:
<tr>
<td>setTimeout</td>
<td>60000</td>
<td>Wait 60 seconds for the page</td>
</tr>
请参阅Selenium Reference中的setTimeout ( timeout )
另请查看waitForPageToLoad ( timeout )
<tr>
<td>click</td>
<td>Your XPath</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>60000</td>
<td>Wait one minute</td>
</tr>