in reply to Re: Perl WWW::Mechanize::Firefox checkbox tick problem
in thread Perl WWW::Mechanize::Firefox checkbox tick problem

Sorry - my bad. In this site there are 2 checkboxes - interested[] and professionArea[]. I can't tick both. And what can I do? And right - there is input names "interested[]" . I wanna tick both but i can't - $mech->field('interested[]' => '1'); didn't work. Have you any sugestion? UPDATE: I use your code : $mech->tick({ xpath => '//input[@type="checkbox" and @name="professionArea[]"' }, 1); and I got message:
MozRepl::RemoteObject: NS_ERROR_DOM_INVALID_EXPRESSION_ERR: The expres +sion is no t a legal expression. at C:/Perl/site/lib/WWW/Mechanize/Firefox.pm lin +e 2059
This is it:
... my @found = map { $doc->__xpath($_, $n) } $q; # @$query; ...
EDIT: \o/ YEAH \o/ . Thanks for help. I commented line with quoted and all works fine. Thanks bro!!!!!!!