Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jan 2011
    Thanked 0 Times in 0 Posts

    Win32::IEAutomation: Unable to select checkbox


    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;
    $,=" ";

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

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






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

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

    #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 06:32 PM. Reason: better presentation


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts