chrome : Error - Unknown protocol - MalformedURLException

54 views
Skip to first unread message

avani

unread,
Feb 9, 2009, 6:01:39 AM2/9/09
to selenium-users...@googlegroups.com
I am trying to launch Selenium server with the htmlSuite option as

java -jar selenium-server.jar -htmlSuite *chrome chrome://qd/content/qd.xul testSuite/testSuite.html testSuite/results.html

This gives the error chrome : unknown protocol

However this works perfectly fine when I open a URL with the standard protocol http

java -jar selenium-server.jar -htmlSuite *chrome [http://www.google.com] testSuite/testSuite.html testSuite/results.html

But my application can be launched only as chrome:qd/content/qd.xul

I am pasting the exact error below. Thanx for all the help!!!!



{code:html}      
[root@localhost selenium-server-1.0-beta-2]# java -jar selenium-server.jar -htmlSuite *chrome chrome://qd/content/qd.xul testsuite/testsuite.html testsuite/results.html \\ 23:47:30.475 INFO - Java: Sun Microsystems Inc. 11.0-b16\\ 23:47:30.475 INFO - OS: Linux 2.6.18-8.el5 i386\\ 23:47:30.476 INFO - v1.0-beta-2 [2571], with Core v1.0-beta-2 [2330]\\ 23:47:30.529 INFO - Version Jetty/5.1.x\\ 23:47:30.529 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]\\ 23:47:30.530 INFO - Started HttpContext[/selenium-server,/selenium-server]\\ 23:47:30.531 INFO - Started HttpContext[/,/]\\ 23:47:30.534 INFO - Started SocketListener on 0.0.0.0:4444\\ 23:47:30.534 INFO - Started [org.mortbay.jetty.Server@201f9]\\ HTML suite exception seen:\\ java.lang.RuntimeException: java.net.MalformedURLException: unknown protocol: chrome\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.browserlaunchers.LauncherUtils.stripStartURL(LauncherUtils.java:164)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.browserlaunchers.LauncherUtils.getDefaultHTMLSuiteUrl(LauncherUtils.java:180)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchHTMLSuite(FirefoxChromeLauncher.java:305)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:93)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:141)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:632)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:236)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:194)\\ Caused by: java.net.MalformedURLException: unknown protocol: chrome\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URL.<init>(Unknown Source)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URL.<init>(Unknown Source)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URL.<init>(Unknown Source)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openqa.selenium.server.browserlaunchers.LauncherUtils.stripStartURL(LauncherUtils.java:157)\\ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 7 more\\ 23:47:30.580 INFO - Shutting down...\\ [root@localhost selenium-server-1.0-beta-2]#
{code}

Reply all
Reply to author
Forward
0 new messages