$mech->click({id => 'ProductSelect-option-color-solar-8568844557'}); #### my $response = $mech->click({id => 'ProductSelect-option-color-solar-8568844557'}); $mech->sleep(5); print Dumper($response); if ($response->is_success) { printf("click succeeded\n"); } #### > ./www_mechanize_chrome_testcase.pl $VAR1 = []; Can't call method "is_success" on unblessed reference at ./www_mechanize_chrome_testcase.pl line 27.