1

What does $mech->xpath() return using WWW::Mechanize::Firefox?

The documentation says it "Returns the matched results.", which doesn't help.

What object or array of objects is returned and where is a specification of this object so I can reference its member variables and methods?

So far I have guessed that this is relevant: https://developer.mozilla.org/en-US/docs/Web/API/Element

CJ7
  • 22,579
  • 65
  • 193
  • 321
  • The method returns the node(s) of the XML (the HTML-Document you run it against) which match your selector. Have you tried to use the Data::Dumper to look into your result? (e.g. print Dumper($mech->xpath( [yourXpathQuery] ) ) – Otterbein May 30 '16 at 09:54

1 Answers1

0

It returns a MozRepl::RemoteObject::Instance object.

CJ7
  • 22,579
  • 65
  • 193
  • 321