I'm using selenium in my test suite, but since it's slow to set up, I'd like to prototype my xpaths on live pages, rather than waiting for tests to run. Is there a good way to do this?
- Firebug's $x xpath seems to not work very well
- jQuery doesn't seem to support Xpath selectors natively, though it used to in version 1.2.
- using the native javascript stuff (
document.evaluator(...)
) is verbose and doesn't return lists, making it irritating to use.
What's a good solution? Perhaps there's a way to use selenium as a nice REPL directly?