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 (Pilgrim) 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.