How to set an alert in Selenium RC using C# in .cs file?

Posted by Vijay Prasath on Stack Overflow See other posts from Stack Overflow or by Vijay Prasath
Published on 2010-04-24T06:17:14Z Indexed on 2010/04/24 6:23 UTC
Read the original article Hit count: 181

Filed under:

Purpose:

To convert the following code from Selenium IDE to RC in C#.

<tr>
  <td>storeEval</td>
  <td>alert("Please Enter the Verification code");</td>
  <td></td>
</tr>

To set pause for enter Captcha value. in a loop. its working fine in IDE.

Tried with the converted code it shows as the following but VS08 shows Synax error.

String  = selenium.GetEval("alert(\"Please Enter the Verification code\");");

© Stack Overflow or respective owner

Related posts about selenium