in reply to Re^2: How to extract xpath from the webpage
in thread How to extract xpath from the webpage

If Selenium supports XPath queries, you don't need any Perl XPath modules. If you want to access Selenium and its results, see WWW::Selenium. If you want to use HTML::TreeBuilder::XPath, I'm not sure where your actual problem in your code is. The "synopsis" section shows how to extract HTML fragments from a given HTML string. Maybe you want to fetch the images using LWP::UserAgent then?

Personally, I automate websites with WWW::Mechanize::FireFox, which supports Javascript (and XPath).

  • Comment on Re^3: How to extract xpath from the webpage