Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-05-2011, 05:28 PM   PM User | #1
udday.shank
New to the CF scene

 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
udday.shank is an unknown quantity at this point
Win32::IEAutomation: Unable to select checkbox

Hi,

My task is to login to www.gmail.com and then select the checkbox corresponding to first mail and delete. However, I am unable to select the checkbox.

Here is my snippet:


use Win32::IEAutomation;
use Data:umper;
$\="\n";
$,=" ";

open FH, ">D:/material/Perl_ppts/test.txt" or die $!;

$ie=Win32::IEAutomation->new(visible=>1, maximize=>1);

$url='https://www.google.com/accounts/ServiceLogin?

service=mail&passive=true&rm=false&continue=http://mail

.google.com/mail/%3Fui%3Dhtml%26zy%

3Dl&bsv=1eic6yu9oa4y3&scc=1&ltmpl=default&ltmplcache=2
';


$ie->gotoURL($url);

$ie->getTextBox('id:', 'Email')->SetValue

('<userid>');
$ie->getTextBox('id:', 'Passwd')->SetValue

('<password>');
#print $ie->PageText();

$ie->getButton('id:', 'signIn')->Click;
print Dumper($ie->URL());

$ie->getCheckbox('id:',':nu')->Select; #Failed
#then i tried this->
$ie->getCheckbox('index:', 1)->Select; #FAILED

I get error stating: cant call select on an undefined object. Please tell how to select a particular checkbox(say 3rd or 4th)

Last edited by udday.shank; 01-05-2011 at 05:32 PM.. Reason: better presentation
udday.shank is offline   Reply With Quote
Reply

Bookmarks

Tags
automation, cgi, perl

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:51 PM.


Advertisement
Log in to turn off these ads.