in reply to
Win32::IE:: Mechanize click_button; no form
$agent->Document->getElementById('buttonid')->Click();
InternetExplorer Object
Document Property (InternetExplorer, WebBrowser)
document Object (CUSTOM, window)
all Collection (A, ABBR, ACRONYM, ...)
form Object
name Property (Attr Constructor, A, APPLET, ...)
click Method (A, ADDRESS, APPLET, ...)
OLE wrapper for IE
input type=button Object
attributes Collection (Attr Constructor, Element Constructor, HTMLDocument Constructor, ...)
Comment on
Re: Win32::IE:: Mechanize click_button; no form
Download
Code
Replies are listed 'Best First'.
Re^2: Win32::IE:: Mechanize click_button; no form
by
james2vegas
(Chaplain)
on Aug 14, 2009 at 10:29 UTC
The button was unnamed, so it would have to have been getElementsByTagName, but irregardless, calling click or browsing to a javascript: url result in an alert, blocking perl until it is dispatched.
[reply]
In Section
Seekers of Perl Wisdom