Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Why doesn't $mech->title() change after $mech->submit_form?

by leira (Monk)
on Mar 03, 2004 at 23:42 UTC ( [id://333731]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://333731]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-20 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found