Share
Go down
Pallavi Choudhary
Active particpant
Active particpant
Posts : 24
Join date : 2012-05-08

How to store user input in variable using selenium RC

on Wed Aug 22, 2012 1:57 pm
Hello,

I am using selenium RC with c#.
I want to store the value input by user in my variable.
Please help me to solve this issue.
i am using selenium.getEval to promt the message.

Thanks,
Pallavi
avatar
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 31
Location : INDIA
http://radical-qa.blogspot.in/

Re: How to store user input in variable using selenium RC

on Tue Dec 04, 2012 12:55 pm
Code:
String test= selenium.GetEval("prompt("enter")");

With this you can store user input any variable, if you want to store it in another variable then just use following commands
Code:
String test = testing;
Console.WriteLine(testing);

_________________
Radical QA
http://radical-qa.blogspot.in/
Back to top
Permissions in this forum:
You cannot reply to topics in this forum