in reply to Why doesn't $mech->title() change after $mech->submit_form?

Are you sure that your $mech->submit_form succeeded? You can call $mech->success again to be sure.

Assuming it succeeded, does $mech->content give you the results you were expecting?

Linda

Replies are listed 'Best First'.
Re: Re: Why doesn't $mech->title() change after $mech->submit_form?
by Plankton (Vicar) on Mar 03, 2004 at 23:46 UTC
    I am pretty certain the the $mech->submit_form was successful because when I do my Dumper( $resp ) I can see ...
    resp = [ $VAR1 = bless( { '_protocol' => 'HTTP/11', '_content' => ' <HTML> <HEAD><TITLE>Props update example jsp</TITLE></HEAD>

    Plankton: 1% Evil, 99% Hot Gas.
      Well $mech->title uses HTML::HeadParser on the current value of $mech->content, which is why I think it would be valuable to check whether $mech->content is what you think it is.

      Linda

        When I do ...
        print $mech->content;
        ... I get ...
        <HTML> <HEAD><TITLE>Props update example jsp</TITLE></HEAD> ...
        ... and $mech->success returns true. Why doesn't $mech->title() update? What'cha think ... is this a bug?

        Plankton: 1% Evil, 99% Hot Gas.