in reply to Having trouble getting WWW::Mechanize::Firefox->xpath to return expected results
Most likely it is something with your use of xpathResult('STRING_TYPE'.... Also, there is no ->mech() method in WWW::Mechanize::Firefox.
Personally, I would recommend simply retrieving the links and extracting the href attribute on the Perl side:
my @links = ...('//div[@id="CID60"]/ol/li/a', all => 1); my @href = map { $_->{href} } @links;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Having trouble getting WWW::Mechanize::Firefox->xpath to return expected results
by nysus (Parson) on Apr 03, 2016 at 19:55 UTC | |
by Corion (Patriarch) on Apr 03, 2016 at 20:01 UTC |