WWW::Mechanize::Plugin::Selector - CSS selector method for WWW::Mechanize
$mech->selector( $css_selector, %options )
my @text = $mech->selector('p.content');
Returns all nodes matching the given CSS selector. If $css_selector is an array reference, it returns all nodes matched by any of the CSS selectors in the array.
$css_selector
This takes the same options that ->xpath does.
->xpath
To install WWW::Mechanize::PhantomJS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Mechanize::PhantomJS
CPAN shell
perl -MCPAN -e shell install WWW::Mechanize::PhantomJS
For more information on module installation, please visit the detailed CPAN module installation guide.