This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
NoSuchElementException's from PhantomJS are converted into ErrorHandler$UnknownServerException #5000
Open
Description
Originally reported on Google Code with ID 5000
What steps will reproduce the problem?
1. Start a selenium grid node, connected to a local selenium grib hub, and using phantomjs
instances. Example command line (irrelevant config trimmed):
% java -jar selenium-server.jar -role node -browser "browserName=phantomjs,maxInstances=2"
2. In the testing client, use org.openqa.selenium.remote.RemoteWebDriver to connect
to a website.
3. Request a non-existent element using:
driver.findElement(By.id("foobar"))
What is the expected output? What do you see instead?
The client should receive a NoSuchElementException.
The client actually receives...
org.openqa.selenium.WebDriverException: Error Message => 'Unable to find element with
id 'foobar''
Selenium version:
OS: Ubuntu 12.10
Browser: phantomjs (aka. Ghostdriver)
Browser version: 1.8 (actually, current head from source control).
Reported by gazimon
on 2013-01-11 03:55:44