#### use warnings; use strict; use Log::Log4perl qw(:easy); use WWW::Mechanize::Chrome; Log::Log4perl->easy_init($ERROR); my $server = 'http://devvps.ddns.net:3000'; my $url = "$server/test.html"; my $m = WWW::Mechanize::Chrome->new( autoclose => 0, ); $m->get($url); $m->click('test-button'); #### $m->click('test-button'); # No elements found for Button with name 'test\-button' at t/20-mech.t.pl line 21. $m->click('test-button', 28, 20); # No elements found for Button with name 'test\-button' at t/20-mech.t.pl line 22. $m->click_button(id => 'test-button'); # No elements found for form number 1 at t/20-mech.t.pl line 23.