in reply to Perl WWW::Mechanize::Firefox checkbox tick problem
marto spotted the problem. Your search arguments don't match your HTML. Ignore this reply. Update2: It seems that this reply still might apply:
It seems that the following lines are the problematic parts in WWW::Mechanize::Firefox::tick:
... $name = quotemeta($name); $value = quotemeta($value) if $value; ...
I think they should only escape double quotes (as that is what is used to produce the XPath expression.
I recommend using the hashref option to ->tick instead, at least until a fix comes:
$mech->tick({ xpath => '//input[@type="checkbox" and @name="profession +Area[]"' }, 1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl WWW::Mechanize::Firefox checkbox tick problem
by elols (Initiate) on Feb 06, 2012 at 10:10 UTC |