http://www.perlmonks.org?node_id=940980


in reply to How do I call a JavaScript function from WWW::Scripter?

Since the javascript is merely checking that both login_name and login_pwd are set to something, and you know that your code will set them both, why bother? Just set the fields and submit the form.