sreenath has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to open iGoogle and trying to enter the User Name in the "Email" field;
use Win32::IEAutomation; # Creating new instance of Internet Explorer my $ie = Win32::IEAutomation->new( visible => 1, maximize => 1 +); # Site navigation $ie->gotoURL('http://www.google.com'); # Finding hyperlinks and clicking them # Using 'linktext:' option (text of the link shown on web page +) $ie->getLink('linktext:', "iGoogle")->Click; # Finding hyperlinks and clicking them # Using 'linktext:' option (text of the link shown on web page +) $ie->getLink('linktext:', "Sign in")->Click; # Finding text field and entering data into it # Using 'name:' option ( <input type="text" name="username" .. +.....> ) $ie->getTextBox('Email:',"sreenathdravidian")->SetValue($user) +;
I am unable to enter the text in the Emmail field. It shows an error as
WARNING: 'Email:' is not supported to get the object
Can you please help???

Replies are listed 'Best First'.
Re: WIn 32 IE:Automation
by Corion (Patriarch) on Dec 16, 2010 at 08:19 UTC

    I think you misunderstand how ->getTextBox works. The first parameter is how you want to access the element, the second parameter is what you want to search for.

    You seem to be passing the text to search for as the first parameter and something else as the second parameter. Look again at Win32::IEAutomation on how to use ->getTextBox.