I can't replicate the problem:
Q:\repos\WWW-Mechanize-FireFox>perl -Ilib -MWWW::Mechanize::Firefox::D +SL -wle "update_html(q{<html><head></head><body><a href="http://examp +le.com">Test</a><a href="http://foobar.example.com">no Test</a></body +></html>}); print content; print $_->{innerHTML} for selector q{*[hre +f*='/example.co']}" <html><head></head><body><a href="http://example.com">Test</a><a href= +"http://foobar.example.com">no Test</a></body></html> Test
A somewhat more verbose version than this oneliner would be:
#!perl -w use WWW::Mechanize::Firefox::DSL; update_html(q{<html><head></head><body><a href="http://example.com">Te +st</a><a href="http://foobar.example.com">no Test</a></body></html>}) +; highlight_node( selector(q{*[href*='/example.com']}));
Most likely your HTML is not what your script sees, or your selector is subtly wrong, or something else. It's hard to tell without seeing the relevant Perl code. Also see WWW::Mechanize::Firefox::Troubleshooting about a possible reason for why calling ->click on an element may cause your script to stall.
If that does not address the problem, consider also showing the relevant error message(s) you get.
In reply to Re: WWW::Mechanize::Firefox CSS Selectors
by Corion
in thread WWW::Mechanize::Firefox CSS Selectors
by Lobatto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |