http://www.perlmonks.org?node_id=1033463


in reply to Using xpath value in selenium web driver in perl

An “interactive XPath tester” such as the one at http://http://www.xpathtester.com/ is a very valuable tool.   Extract the actual stream that you’re getting from the host, paste it into the appropriate window, then try your expression against it.   Good thing to have on your browser’s bookmarks-bar.