0
用途:如何在.cs文件中使用C#在Selenium RC中设置警报?
将以下代码从Selenium IDE转换为C#中的RC。
<tr>
<td>storeEval</td>
<td>alert("Please Enter the Verification code");</td>
<td></td>
</tr>
设置暂停以输入Captcha值。在一个循环中。它在IDE中工作正常。
尝试使用转换后的代码,如下所示,但VS08显示Synax错误。
String = selenium.GetEval("alert(\"Please Enter the Verification code\");");