Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged
New issue 4918 by
sand...@gmail.com: WebDriverBackedSelenium is
throwing 'no protocol' error on instantiation with webDriver 2.27.0
http://code.google.com/p/selenium/issues/detail?id=4918
We have automation project for our internal use and that used webDriver
2.25. We were using WebDriverBackedSelenium for some of the events. We
tried updating the selenium version to 2.27 with the firefox version to 16.
The setUp() creates the WebDriver instance and the WebDriverBackedSelenium
instance.
After the upgrade when we tried launching the test the setUp() started to
throw the error. While debugging we saw that creation of instance of
WebDriverBackedSelenium throws the error. We tried creating a small project
outside our framework and got the same error.
"Exception in thread "main" com.thoughtworks.selenium.SeleniumException: no
protocol:
at org.openqa.selenium.internal.seleniumemulation.Open.<init>(Open.java:33)
at
org.openqa.selenium.WebDriverCommandProcessor.setUpMethodMap(WebDriverCommandProcessor.java:281)
at
org.openqa.selenium.WebDriverCommandProcessor.<init>(WebDriverCommandProcessor.java:49)
at
org.openqa.selenium.WebDriverBackedSelenium.<init>(WebDriverBackedSelenium.java:31)
at TestSel227.main(TestSel227.java:14)
Caused by: java.net.MalformedURLException: no protocol:
at java.net.URL.<init>(URL.java:583)
at java.net.URL.<init>(URL.java:480)
at java.net.URL.<init>(URL.java:429)
at org.openqa.selenium.internal.seleniumemulation.Open.<init>(Open.java:31)
... 4 more
".
Our project uses a WebDriverBackedSelenium to simulate some of things. So
this error is stopping us to migrate to WebDriver 2.27 or 2.28(same issue).
Kindly look into the same.
Selenium version: 2.27 and/or 2.28
OS: Windows 7
Browser: Firefox
Browser version: 16 and/or 17.
Sample code :
WebDriver driver = new FirefoxDriver();
WebDriverBackedSelenium wdbsDriver = new WebDriverBackedSelenium(driver,"");