Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using perl to click a button in a frameset

Status
Not open for further replies.

cbh35711

Programmer
Joined
Dec 12, 2005
Messages
28
Location
US
I need to interact with a secure webpage in order to upload some data.
I've got to the first secured page as it were by just passing my password and username as normal
$browser = $browser->get('Everything i've found on cpan.org is specifically geared towards forms in html, but the page i'm trying to click doesn't use forms, grrr.
onclick="getBrowserInfo();" that's the click, any idea of how i can click it?

Thanks for any help you guys can offer,

Chris
 
Your "click" appears to be a javascript call.
I can't see how you can emulate this for 2 reasons.
First, Perl is not Javascript.
Secondly, even if you did install Javascript server side, the "click" is a client side call and obviously has something to do with the browser settings and since you're using a script instead of a browser then you have real problems emulating that functionality.

First thing to do it to run it in a browser and collec the output in, say, an "alert" so that you can see what the browser produces. Then, maybe, you can create a dummy that matches.


Trojan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top