in reply to web automation button clicking problems
I'm not familiar with Win32::IEAutomation but the "button" you need to click on is actually a link so change getButton() to:use HTML::TreeBuilder::XPath; # ... my $tree = HTML::TreeBuilder::XPath->new_from_content($content); my $id = $tree->findvalue('//a[@title="SEARCH"]/@id');
That may not work as it is a javascript function - onclick="dispatch()" - if it doesn't you will need to examine the javascript to see where the link is going to and what parameters it has, then you could probably use LWP::UserAgent to access.$ie->getLink('id:', $id )->Click();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: web automation button clicking problems
by MicrobicTiger (Initiate) on Jan 31, 2014 at 03:34 UTC | |
by Anonymous Monk on Jan 31, 2014 at 03:40 UTC | |
by tangent (Parson) on Jan 31, 2014 at 03:39 UTC | |
by MicrobicTiger (Initiate) on Jan 31, 2014 at 03:50 UTC | |
by tangent (Parson) on Jan 31, 2014 at 04:06 UTC | |
by MicrobicTiger (Initiate) on Jan 31, 2014 at 04:20 UTC | |
| |
by tangent (Parson) on Jan 31, 2014 at 03:59 UTC |