in reply to No Elements Found with WWW::Mechanize::PhantomJS
At least when visiting the page from Firefox and right-clicking the element, I get a different XPath:
/html/body/div[4]/main/div/div[2]/div/div/div[1]/div[1]/div[2]
instead of your query:
/html/body/div[4]/main/div/div[2]/div/div/div[2]/div/div[1]/div[1]/div +[2]
But why are you using such a complex query when .tn-napsTable should work the same?
my $cont= $mech->selector('.tn-napsTable', one => 1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: No Elements Found with WWW::Mechanize::PhantomJS
by rmperl (Novice) on Jun 04, 2018 at 10:36 UTC | |
by Corion (Patriarch) on Jun 04, 2018 at 10:50 UTC | |
by Corion (Patriarch) on Jun 04, 2018 at 18:46 UTC | |
by rmperl (Novice) on Jun 08, 2018 at 12:24 UTC |