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\\ at org.openqa.selenium.server.browserlaunchers.LauncherUtils.stripStartURL(LauncherUtils.java:164)\\ at org.openqa.selenium.server.browserlaunchers.LauncherUtils.getDefaultHTMLSuiteUrl(LauncherUtils.java:180)\\ at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchHTMLSuite(FirefoxChromeLauncher.java:305)\\ at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:93)\\ at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:141)\\ at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:632)\\ at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:236)\\ at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:194)\\ Caused by: java.net.MalformedURLException: unknown protocol: chrome\\ at java.net.URL.<init>(Unknown Source)\\ at java.net.URL.<init>(Unknown Source)\\ at java.net.URL.<init>(Unknown Source)\\ at org.openqa.selenium.server.browserlaunchers.LauncherUtils.stripStartURL(LauncherUtils.java:157)\\ ... 7 more\\ 23:47:30.580 INFO - Shutting down...\\ [root@localhost selenium-server-1.0-beta-2]#
{code}