The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

SYNOPSIS

NAME

WWW::Mechanize::Plugin::Selector - CSS selector method for WWW::Mechanize

ADDED METHODS

$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.

This takes the same options that ->xpath does.