in reply to Re: CheckBox and Radio Button
in thread CheckBox and Radio Button
For the tag"<input type="radio" name="ticketType" value="iticket" iTkt >"
I used the follwing code to retrive the radio button value.
$cgi=CGI::new(); $IE=Win32::IEAutomation->new(visible=>1, maximize=>1); $IE->gotoURL('http://www.irctc.co.in'); $IE->getTextBox('name:','userName')->SetValue('sid123'); SendKeys("~"); $IE->getTextBox('name:','password')->SetValue('sid*123'); $IE->getButton('name:','submit')->Click(); if ($cgi->param('ticketType') eq 'iticket') { print "Iticket"; } else { print "None" }
On execution of above code the following error message is displayed "Use of uninitialized value in string eq at D:\Perl\Sample\check.pl line 12."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CheckBox and Radio Button
by Anonymous Monk on Apr 15, 2009 at 10:33 UTC | |
|
Re^3: CheckBox and Radio Button
by ikegami (Patriarch) on Apr 15, 2009 at 16:29 UTC |