in reply to WWW::Mechanize can't log in using it

$n->set_visible( $user, $password );

I've found that set_visible isn't always reliable; sometimes there are other fields or weird javascripty widgets that mess it up. I find it's almost always better to specify the fields by name. So assuming the fields are called 'username' and 'password', try something like:

$n->set_fields( username => $user, password => $password );

Replies are listed 'Best First'.
Re^2: WWW::Mechanize can't log in using it
by Skeeve (Parson) on Oct 26, 2005 at 14:45 UTC

    Unfortunately the names are not that easy. Example:

    and I don't want to have those complicated names in my script. Especially not because they might choose to change them!

    Fortunately set_visible is not the problem as the data really goes to the expected fields as the network analysis reveald.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e