in reply to Re^2: using and debuging www Mechanize
in thread using and debuging www Mechanize

HTML does not have "panel"s, so it's kinda hard to tell what you mean by this. If you're not ending up at the page you expect to, you'll need to debug that issue, possibly by looking at whether the HTML contains some error message or something.

Mechanize will use the "submit" button associated with your form. Maybe take another look at what ->dump_forms() outputs.

Replies are listed 'Best First'.
Re^4: using and debuging www Mechanize
by yantar (Initiate) on Jun 08, 2009 at 13:14 UTC
    When i use ->dump_forms() after i ran the Submit_form i get:
    ctl00$ctl00$cphServer$cphLogin$txtUser=someone (text) ctl00$ctl00$cphServer$cphLogin$txtPW= (password) ctl00$ctl00$cphServer$cphLogin$ddlServers=Live (option) [*Live|Tes +t] ctl00$ctl00$cphServer$cphLogin$btnSignIn=Sign-In (submit) ctl00$ctl00$cphServer$cphLogin$btnConfigure=Configure (submit)
    And i see there are two Submit lines, how i can make sure submit_form is using the correct one?
      What is the correct one? 2nd example from SYNOPSIS
      $mech->submit_form( form_name => 'search', fields => { query => 'pot of gold', }, button => 'Search Now' );
      So try
      submit_form( button => 'Sign-In', ...
        OK, i did that, but still i am not redirected to the next page. Is it possible there is something like a cookie or another protection that stops me from entering?
        How can i check for cookies and make sure i am valid?

        Thanx again for all your help!