Hello everyone,
I am using Win32::IEAutomation and I am able to get the program 
to go to different web pages with the following and to go to a 
particular link within a webpage.
 
use Win32::IEAutomation;
my $ie =Win32::IEAutomation->new(visible=>1,maximize=>1);
$ie->gotoURL('http://www.google.com');
$ie-.getLink('linktext:', "About Google")->Click;
$ie->gotoURL('http://www.msn.com');
 
 
I am wanting to navigate to a particular web page and have this navigate to 
all the links within a webpage.There is a function defined getAllLinks() but I 
have not
been successful in using this to extract all the links from a page.I have tried 
the 
following:
 
sub alpha (@links=getAllLinks('http://www.yahoo.com');
 return @links);
print $links;
 
I have also tried  $ie->getLink('a',"href")->Click;
 
Any help would be appreciated
Paul

Reply via email to