Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: help clicking radio buttons using WWW::Mechanize::Chrome

by shmem (Chancellor)
on Jan 10, 2021 at 23:46 UTC ( [id://11126729]=note: print w/replies, xml ) Need Help??


in reply to help clicking radio buttons using WWW::Mechanize::Chrome

How do I go about debugging this?
my $response = $mech->click({id => 'ProductSelect-option-color-solar-8 +568844557'});

What is in $response? I'd dump that and go on from there.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^2: help clicking radio buttons using WWW::Mechanize::Chrome
by Special_K (Monk) on Jan 11, 2021 at 02:00 UTC

    It's apparently empty. If I modify my original code to include the Dumper call as follows:

    my $response = $mech->click({id => 'ProductSelect-option-color-solar-8 +568844557'}); print Dumper($response);

    The output is:

    > ./www_mechanize_chrome_testcase.pl $VAR1 = []; Can't call method "is_success" on unblessed reference at ./www_mechani +ze_chrome_testcase.pl line 26.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-24 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found