When the server is started with the -userExtensions switch and path to the user-extensions.js file (which adds a custom locator), my test works fine with the *chrome launcher. However, it fails with the *iehta launcher with the following error in the server console:
Got result: ERROR: Unrecognised locator type: 'ui' on session 151781
and in the client console:
- Error requesting http://localhost:4444/selenium-server/driver/?cmd=click&1=ui%3D%3A%3Aarticle
(index%3D1)&sessionId=151781:
- ERROR: Unrecognised locator type: 'ui'
not ok 2 - click, ui=::article(index=1)
- Failed test 'click, ui=::article(index=1)'
- at ui-test.pl line 18.
This issue was previously reported in the forums:
http://forums.openqa.org/message.jspa?messageID=23333#23333
I put a javqascript alert() in the user-extensions.js within selenium-server.jar, and it poped up.
Maybe the -userExtensions switch is being ignored in *iehta mode?