I'm using the latest Selenium RC version (1.0 beta 2).
I launched the server with options: -singleWindow -interactive
The test case barely matters in my case, but anyhow, the following fails when run in the shell:
cmd=getNewBrowserSession&1=iexploreproxy&2=
http://localhost/
cmd=useXpathLibrary&1=javascript-xpath
cmd=isElementPresent&1=xpath=id('main')
That last line returns "Invalid xpath", as will any other XPath line I use, whereas:
cmd=isElementPresent&1=css=div#main
Will return true.
I've tried XPath like: /html/body, //body, etc., none of them work; I always get a Invalid xpath error.
Using DebugBar for IE, it seems that the javascript-xpath.js file is not loaded with the other xpath files; only dom.js, util.js, xmltoken.js and xpath.js are loaded.