Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by shmem (Chancellor)
on Jan 10, 2021 at 23:46 UTC ( #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
Node Status?
node history
Node Type: note [id://11126729]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2021-03-01 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?