ok, here is the code: $webserver=apache1; $platform=solaris; $uname=abc123; $password=abc123;
my $ie = Win32::IEAutomation->new(visible=>1,maximized=>1); if ($webserver == apache1 && $platform == solaris){ $ie->gotoURL('http://xyz.test.com:8900/_cqr/test.cgi'); } $ie->getTextBox("name:", "loginId")->SetValue($uname);# am passing username $ie->getTextBox("name:", "password")->SetValue($password); # to pass the password $ie->getButton("caption:", "Submit")->Click; #this is to submit the details... $ie->getLink("linktext:", "xyz")->Click;# after i login i need to click on particular link on the page Content();# after i am navigated, i am trying to get contents from my page...not sure if this is correct.. VerifyText($nick="google.com") ;# this is to verify whether google.com is present in the contents returned... now i am able to login successfully, and able to navigate to that particular link as well...but after navigating i have to verify wehther certain parameters are present or not...this is where i am struck.. any ideas how do i verify..this thnx vish On 10/11/06, Charles K. Clarkson <[EMAIL PROTECTED]> wrote:
Provide a segment of code which can be run and produces the error you are getting. These three lines of code will not run. We don't know how you defined the $ie object, for example. We should be able to copy and paste your supplied code and run it locally. Please send your code to the list, not to me personally. Allow everyone to help you. Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -----Original Message----- *From:* Vishwanath Chitnis [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, October 11, 2006 2:54 AM *To:* [EMAIL PROTECTED] *Subject:* Re: need to parse and verify certain content.. On 10/11/06, Charles K. Clarkson <[EMAIL PROTECTED]> wrote: > > Vishwanath Chitnis wrote: > > : is there any other way other than above mentioned to do this? > > How can we possibly tell with only those lines? > > Show more code. Something we can run that will illustrate > your problem. > > > HTH, > > Charles K. Clarkson > -- > Mobile Homes Specialist > Free Market Advocate > Web Programmer here is sample of code.. $ie->getLink("linktext:", "xyz")->Click;#am navigated to my xyz page Content();#here i am trying to get contents from my page...not sure if this is correct.. VerifyText($nick="google.com") ;# this is to verify whether google.com is present in the contents returned... let me know if you need some more info. thnx 254 968-8328 > > Don't tread on my bandwidth. Trim your posts. > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > < http://learn.perl.org/> <http://learn.perl.org/first-response> > > >