Error using Selenium Html Runner 3.4.0

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error using Selenium Html Runner 3.4.0

Albert Ruthnik
Im trying to run a previously recorded test suite from the command line.
It throws a long and absolutely non-understandable error. Please see below.
The log-directory /fritzbox_test.out/ is empty.
Can anybody help?
Thanks in advance.

OS: Linux Mint 17.2

Command: java -jar selenium-html-runner-3.4.0.jar -htmlSuite "*firefox" http://fritz.box/ ./fritzbox_test.suite fritzbox_test.out

Output from command line:
Multi-window mode is longer used as an option and will be ignored.
1496503517014    geckodriver    INFO    Listening on 127.0.0.1:15443
1496503517463    geckodriver::marionette    INFO    Starting browser /usr/lib/firefox/firefox with args ["-marionette"]

(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1496503525242    Marionette    INFO    Listening on port 45795

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
Jun 03, 2017 5:25:26 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C
2017-06-03 17:25:26.279:INFO::main: Logging initialized @11905ms to org.seleniumhq.jetty9.util.log.StdErrLog
2017-06-03 17:25:26.406:INFO:osjs.Server:main: jetty-9.4.z-SNAPSHOT
2017-06-03 17:25:26.449:INFO:osjsh.ContextHandler:main: Started o.s.j.s.h.ContextHandler@70325e14{/tests,null,AVAILABLE}
2017-06-03 17:25:26.505:INFO:osjs.AbstractConnector:main: Started ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{0.0.0.0:19701}
2017-06-03 17:25:26.506:INFO:osjs.Server:main: Started @12132ms
2017-06-03 17:25:27.711:INFO:osjs.AbstractConnector:main: Stopped ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{0.0.0.0:19701}
2017-06-03 17:25:27.713:INFO:osjsh.ContextHandler:main: Stopped o.s.j.s.h.ContextHandler@70325e14{/tests,null,UNAVAILABLE}
1496503527721    Marionette    INFO    New connections will no longer be accepted
[Child 26630] WARNING: pipe error (3): Die Verbindung wurde vom Kommunikationspartner zurückgesetzt: file /build/firefox-McLvGS/[fGiFrXe1f-o]x:- 5R3e.c0e.i3v+el iInPuCx mcilnots1e+ rwoistah/ iprce/acshorno=mAibunmo/rsmracl/Schhrome/common/ipc_channel_posiutdown
x.cc, line 346
Jun 03, 2017 5:25:27 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNUNG: Test of browser failed: *firefox
org.openqa.selenium.JavascriptException: TypeError: document.body is undefined
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'XPS-L502X', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-119-generic', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.6TBkoHttl6ia, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=53.0.3, platformVersion=3.13.0-119-generic, moz:processID=26569.0, browserName=firefox, javascriptEnabled=true, platformName=linux}]
Session ID: b1b9f58a-d08e-415c-bbc0-838fba52b474
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:573)
    at org.openqa.selenium.server.htmlrunner.CoreTestCase.getLoggableTests(CoreTestCase.java:83)
    at org.openqa.selenium.server.htmlrunner.CoreTestCase.run(CoreTestCase.java:64)
    at org.openqa.selenium.server.htmlrunner.CoreTestSuite.run(CoreTestSuite.java:73)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:120)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:245)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)

Contents of suite-file fritzbox_test.suite:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  <title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="fritzbox_test.case">fritzbox_test</a></td></tr>
</tbody></table>
</body>
</html>

Contents of case-file fritzbox_test.case:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://fritz.box/" />
<title>fritzbox_test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">fritzbox_test</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>/</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=uiPass</td>
    <td>password</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>id=submitLoginBtn</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=blueBarUserMenuIcon</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=logout</td>
    <td></td>
</tr>
</tbody></table>
</body>
</html>


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d0a010e9-4f0f-48dd-8c47-77e8e029db76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error using Selenium Html Runner 3.4.0

Brian Walker
Hell,  Did you ever find a resolution to this?  I don't get any output after the "Multi-window mode..." error. 
Ubuntu 16.04

Thanks.

On Sunday, June 4, 2017 at 12:26:09 AM UTC-4, Albert Ruthnik wrote:
Im trying to run a previously recorded test suite from the command line.
It throws a long and absolutely non-understandable error. Please see below.
The log-directory /fritzbox_test.out/ is empty.
Can anybody help?
Thanks in advance.

OS: Linux Mint 17.2

Command: java -jar selenium-html-runner-3.4.0.jar -htmlSuite "*firefox" <a href="http://fritz.box/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ffritz.box%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHs2GV4MGnDC_FR165y-9gPSAn3NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ffritz.box%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHs2GV4MGnDC_FR165y-9gPSAn3NQ&#39;;return true;">http://fritz.box/ ./fritzbox_test.suite fritzbox_test.out

Output from command line:
Multi-window mode is longer used as an option and will be ignored.
1496503517014    geckodriver    INFO    Listening on <a href="http://127.0.0.1:15443" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A15443\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHH9LGhERksSN0mTfz8HmXO4x2EPw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A15443\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHH9LGhERksSN0mTfz8HmXO4x2EPw&#39;;return true;">127.0.0.1:15443
1496503517463    geckodriver::marionette    INFO    Starting browser /usr/lib/firefox/firefox with args ["-marionette"]

(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1496503525242    Marionette    INFO    Listening on port 45795

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
Jun 03, 2017 5:25:26 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C
2017-06-03 17:25:26.279:INFO::main: Logging initialized @11905ms to org.seleniumhq.jetty9.util.log.StdErrLog
2017-06-03 17:25:26.406:INFO:osjs.Server:main: jetty-9.4.z-SNAPSHOT
2017-06-03 17:25:26.449:INFO:osjsh.ContextHandler:main: Started o.s.j.s.h.ContextHandler@70325e14{/tests,null,AVAILABLE}
2017-06-03 17:25:26.505:INFO:osjs.AbstractConnector:main: Started ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{<a href="http://0.0.0.0:19701" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A19701\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6nsrpIs-a4opQzRwymXiSkoDg4g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A19701\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6nsrpIs-a4opQzRwymXiSkoDg4g&#39;;return true;">0.0.0.0:19701}
2017-06-03 17:25:26.506:INFO:osjs.Server:main: Started @12132ms
2017-06-03 17:25:27.711:INFO:osjs.AbstractConnector:main: Stopped ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{<a href="http://0.0.0.0:19701" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A19701\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6nsrpIs-a4opQzRwymXiSkoDg4g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A19701\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6nsrpIs-a4opQzRwymXiSkoDg4g&#39;;return true;">0.0.0.0:19701}
2017-06-03 17:25:27.713:INFO:osjsh.ContextHandler:main: Stopped o.s.j.s.h.ContextHandler@70325e14{/tests,null,UNAVAILABLE}
1496503527721    Marionette    INFO    New connections will no longer be accepted
[Child 26630] WARNING: pipe error (3): Die Verbindung wurde vom Kommunikationspartner zurückgesetzt: file /build/firefox-McLvGS/[fGiFrXe1f-o]x:- 5R3e.c0e.i3v+el iInPuCx mcilnots1e+ rwoistah/ iprce/acshorno=mAibunmo/rsmracl/Schhrome/common/ipc_channel_posiutdown
x.cc, line 346
Jun 03, 2017 5:25:27 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNUNG: Test of browser failed: *firefox
org.openqa.selenium.JavascriptException: TypeError: document.body is undefined
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'XPS-L502X', ip: '127.0.1.1', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-119-generic', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.6TBkoHttl6ia, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=53.0.3, platformVersion=3.13.0-119-generic, moz:processID=26569.0, browserName=firefox, javascriptEnabled=true, platformName=linux}]
Session ID: b1b9f58a-d08e-415c-bbc0-838fba52b474
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:573)
    at org.openqa.selenium.server.htmlrunner.CoreTestCase.getLoggableTests(CoreTestCase.java:83)
    at org.openqa.selenium.server.htmlrunner.CoreTestCase.run(CoreTestCase.java:64)
    at org.openqa.selenium.server.htmlrunner.CoreTestSuite.run(CoreTestSuite.java:73)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:120)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:245)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)

Contents of suite-file fritzbox_test.suite:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNsVQ5b0cvVPgxg0Xh4xeYLHef5w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNsVQ5b0cvVPgxg0Xh4xeYLHef5w&#39;;return true;">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPnvHmzp7QdvEjpI1OxPKiChMEFw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPnvHmzp7QdvEjpI1OxPKiChMEFw&#39;;return true;">http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  <title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="fritzbox_test.case">fritzbox_test</a></td></tr>
</tbody></table>
</body>
</html>

Contents of case-file fritzbox_test.case:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNsVQ5b0cvVPgxg0Xh4xeYLHef5w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNsVQ5b0cvVPgxg0Xh4xeYLHef5w&#39;;return true;">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPnvHmzp7QdvEjpI1OxPKiChMEFw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPnvHmzp7QdvEjpI1OxPKiChMEFw&#39;;return true;">http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="<a href="http://selenium-ide.openqa.org/profiles/test-case" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fselenium-ide.openqa.org%2Fprofiles%2Ftest-case\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIDar6ie97WAOCwtEgBsWRM3mAhA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fselenium-ide.openqa.org%2Fprofiles%2Ftest-case\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIDar6ie97WAOCwtEgBsWRM3mAhA&#39;;return true;">http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="<a href="http://fritz.box/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ffritz.box%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHs2GV4MGnDC_FR165y-9gPSAn3NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ffritz.box%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHs2GV4MGnDC_FR165y-9gPSAn3NQ&#39;;return true;">http://fritz.box/" />
<title>fritzbox_test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">fritzbox_test</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>/</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=uiPass</td>
    <td>password</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>id=submitLoginBtn</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=blueBarUserMenuIcon</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=logout</td>
    <td></td>
</tr>
</tbody></table>
</body>
</html>


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/61202b2f-da7e-42db-9a02-76b9e6905399%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error using Selenium Html Runner 3.4.0

Simon Stewart
Just noticed this. I'll see if I can figure out what's going on. Is there an issue in the tracker for it?

Simon

On Thu, Jun 22, 2017 at 6:14 PM, Brian Walker <[hidden email]> wrote:
Hell,  Did you ever find a resolution to this?  I don't get any output after the "Multi-window mode..." error. 
Ubuntu 16.04

Thanks.


On Sunday, June 4, 2017 at 12:26:09 AM UTC-4, Albert Ruthnik wrote:
Im trying to run a previously recorded test suite from the command line.
It throws a long and absolutely non-understandable error. Please see below.
The log-directory /fritzbox_test.out/ is empty.
Can anybody help?
Thanks in advance.

OS: Linux Mint 17.2

Command: java -jar selenium-html-runner-3.4.0.jar -htmlSuite "*firefox" http://fritz.box/ ./fritzbox_test.suite fritzbox_test.out

Output from command line:
Multi-window mode is longer used as an option and will be ignored.
1496503517014    geckodriver    INFO    Listening on 127.0.0.1:15443
1496503517463    geckodriver::marionette    INFO    Starting browser /usr/lib/firefox/firefox with args ["-marionette"]

(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1496503525242    Marionette    INFO    Listening on port 45795

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
Jun 03, 2017 5:25:26 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C
2017-06-03 17:25:26.279:INFO::main: Logging initialized @11905ms to org.seleniumhq.jetty9.util.log.StdErrLog
2017-06-03 17:25:26.406:INFO:osjs.Server:main: jetty-9.4.z-SNAPSHOT
2017-06-03 17:25:26.449:INFO:osjsh.ContextHandler:main: Started o.s.j.s.h.ContextHandler@70325e14{/tests,null,AVAILABLE}
2017-06-03 17:25:26.505:INFO:osjs.AbstractConnector:main: Started ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{0.0.0.0:19701}
2017-06-03 17:25:26.506:INFO:osjs.Server:main: Started @12132ms
2017-06-03 17:25:27.711:INFO:osjs.AbstractConnector:main: Stopped ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{0.0.0.0:19701}
2017-06-03 17:25:27.713:INFO:osjsh.ContextHandler:main: Stopped o.s.j.s.h.ContextHandler@70325e14{/tests,null,UNAVAILABLE}
1496503527721    Marionette    INFO    New connections will no longer be accepted
[Child 26630] WARNING: pipe error (3): Die Verbindung wurde vom Kommunikationspartner zurückgesetzt: file /build/firefox-McLvGS/[fGiFrXe1f-o]x:- 5R3e.c0e.i3v+el iInPuCx mcilnots1e+ rwoistah/ iprce/acshorno=mAibunmo/rsmracl/Schhrome/common/ipc_channel_posiutdown
x.cc, line 346
Jun 03, 2017 5:25:27 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNUNG: Test of browser failed: *firefox
org.openqa.selenium.JavascriptException: TypeError: document.body is undefined
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'XPS-L502X', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-119-generic', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.6TBkoHttl6ia, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=53.0.3, platformVersion=3.13.0-119-generic, moz:processID=26569.0, browserName=firefox, javascriptEnabled=true, platformName=linux}]
Session ID: b1b9f58a-d08e-415c-bbc0-838fba52b474
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:573)
    at org.openqa.selenium.server.htmlrunner.CoreTestCase.getLoggableTests(CoreTestCase.java:83)
    at org.openqa.selenium.server.htmlrunner.CoreTestCase.run(CoreTestCase.java:64)
    at org.openqa.selenium.server.htmlrunner.CoreTestSuite.run(CoreTestSuite.java:73)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:120)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:245)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)

Contents of suite-file fritzbox_test.suite:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  <title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="fritzbox_test.case">fritzbox_test</a></td></tr>
</tbody></table>
</body>
</html>

Contents of case-file fritzbox_test.case:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://fritz.box/" />
<title>fritzbox_test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">fritzbox_test</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>/</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=uiPass</td>
    <td>password</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>id=submitLoginBtn</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=blueBarUserMenuIcon</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=logout</td>
    <td></td>
</tr>
</tbody></table>
</body>
</html>


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/61202b2f-da7e-42db-9a02-76b9e6905399%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAOrAhYHdVZT9Gjw5Lj3oLP-rao_h9ixBOe_ysuffCoRDvkAcfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error using Selenium Html Runner 3.4.0

markcollinscope
In reply to this post by Albert Ruthnik
Hello,

I'm fighting this issue as I type (or very similar).
I have got to the point where my test suite is loaded in FF, then it all dies.

Command line:
java -jar /home/mark/selenium/selenium-html-runner-3.4.0.jar -htmlSuite *firefox http://127.0.0.1:3069 /home/mark/GIT/DA/rt-views//payment-api.rtv/testPayment.html /home/mark/out.html

Any assistance really appreciated!

*** Debug Output
Multi-window mode is longer used as an option and will be ignored.
1499517144901 geckodriver INFO Listening on 127.0.0.1:26275
1499517145097 mozprofile::profile INFO Using profile path /tmp/rust_mozprofile.TBI6buWlysAs
1499517145098 geckodriver::marionette INFO Starting browser /usr/lib/firefox/firefox
1499517145099 geckodriver::marionette INFO Connecting to Marionette on localhost:41451
1499517145715 Marionette WARN Deprecated preference marionette.defaultPrefs.enabled detected, please use marionette.enabled
1499517149348 Marionette INFO Listening on port 41451
Jul 08, 2017 1:32:29 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2017-07-08 13:32:30.071:INFO::main: Logging initialized @5842ms to org.seleniumhq.jetty9.util.log.StdErrLog
2017-07-08 13:32:30.175:INFO:osjs.Server:main: jetty-9.4.z-SNAPSHOT
2017-07-08 13:32:30.210:INFO:osjsh.ContextHandler:main: Started o.s.j.s.h.ContextHandler@7c9d8e2{/tests,null,AVAILABLE}
2017-07-08 13:32:30.233:INFO:osjs.AbstractConnector:main: Started ServerConnector@58060228{HTTP/1.1,[http/1.1]}{0.0.0.0:7918}
2017-07-08 13:32:30.237:INFO:osjs.Server:main: Started @6008ms
2017-07-08 13:32:30.992:INFO:osjs.AbstractConnector:main: Stopped ServerConnector@58060228{HTTP/1.1,[http/1.1]}{0.0.0.0:7918}
2017-07-08 13:32:30.993:INFO:osjsh.ContextHandler:main: Stopped o.s.j.s.h.ContextHandler@7c9d8e2{/tests,null,UNAVAILABLE}
1499517150999 Marionette INFO New connections will no longer be accepted
Jul 08, 2017 1:32:31 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNING: Test of browser failed: *firefox
org.openqa.selenium.JavascriptException: TypeError: document.body is undefined
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'lenovo', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-83-generic', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.TBI6buWlysAs, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=54.0, platformVersion=4.4.0-83-generic, moz:processID=24506.0, browserName=firefox, javascriptEnabled=true, platformName=linux}]
Session ID: 8fd1bf70-704e-4933-be37-b1ac032b6e37
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:573)
at org.openqa.selenium.server.htmlrunner.CoreTestCase.getLoggableTests(CoreTestCase.java:83)
at org.openqa.selenium.server.htmlrunner.CoreTestCase.run(CoreTestCase.java:64)
at org.openqa.selenium.server.htmlrunner.CoreTestSuite.run(CoreTestSuite.java:73)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:120)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:245)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)



On Sunday, 4 June 2017 05:26:09 UTC+1, Albert Ruthnik wrote:
Im trying to run a previously recorded test suite from the command line.
It throws a long and absolutely non-understandable error. Please see below.
The log-directory /fritzbox_test.out/ is empty.
Can anybody help?
Thanks in advance.

OS: Linux Mint 17.2

Command: java -jar selenium-html-runner-3.4.0.jar -htmlSuite "*firefox" <a href="http://fritz.box/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ffritz.box%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHs2GV4MGnDC_FR165y-9gPSAn3NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ffritz.box%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHs2GV4MGnDC_FR165y-9gPSAn3NQ&#39;;return true;">http://fritz.box/ ./fritzbox_test.suite fritzbox_test.out

Output from command line:
Multi-window mode is longer used as an option and will be ignored.
1496503517014    geckodriver    INFO    Listening on <a href="http://127.0.0.1:15443" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A15443\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHH9LGhERksSN0mTfz8HmXO4x2EPw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A15443\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHH9LGhERksSN0mTfz8HmXO4x2EPw&#39;;return true;">127.0.0.1:15443
1496503517463    geckodriver::marionette    INFO    Starting browser /usr/lib/firefox/firefox with args ["-marionette"]

(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1496503525242    Marionette    INFO    Listening on port 45795

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
Jun 03, 2017 5:25:26 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C
2017-06-03 17:25:26.279:INFO::main: Logging initialized @11905ms to org.seleniumhq.jetty9.util.log.StdErrLog
2017-06-03 17:25:26.406:INFO:osjs.Server:main: jetty-9.4.z-SNAPSHOT
2017-06-03 17:25:26.449:INFO:osjsh.ContextHandler:main: Started o.s.j.s.h.ContextHandler@70325e14{/tests,null,AVAILABLE}
2017-06-03 17:25:26.505:INFO:osjs.AbstractConnector:main: Started ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{<a href="http://0.0.0.0:19701" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A19701\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6nsrpIs-a4opQzRwymXiSkoDg4g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A19701\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6nsrpIs-a4opQzRwymXiSkoDg4g&#39;;return true;">0.0.0.0:19701}
2017-06-03 17:25:26.506:INFO:osjs.Server:main: Started @12132ms
2017-06-03 17:25:27.711:INFO:osjs.AbstractConnector:main: Stopped ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{<a href="http://0.0.0.0:19701" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A19701\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6nsrpIs-a4opQzRwymXiSkoDg4g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A19701\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH6nsrpIs-a4opQzRwymXiSkoDg4g&#39;;return true;">0.0.0.0:19701}
2017-06-03 17:25:27.713:INFO:osjsh.ContextHandler:main: Stopped o.s.j.s.h.ContextHandler@70325e14{/tests,null,UNAVAILABLE}
1496503527721    Marionette    INFO    New connections will no longer be accepted
[Child 26630] WARNING: pipe error (3): Die Verbindung wurde vom Kommunikationspartner zurückgesetzt: file /build/firefox-McLvGS/[fGiFrXe1f-o]x:- 5R3e.c0e.i3v+el iInPuCx mcilnots1e+ rwoistah/ iprce/acshorno=mAibunmo/rsmracl/Schhrome/common/ipc_channel_posiutdown
x.cc, line 346
Jun 03, 2017 5:25:27 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNUNG: Test of browser failed: *firefox
org.openqa.selenium.JavascriptException: TypeError: document.body is undefined
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'XPS-L502X', ip: '127.0.1.1', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-119-generic', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.6TBkoHttl6ia, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=53.0.3, platformVersion=3.13.0-119-generic, moz:processID=26569.0, browserName=firefox, javascriptEnabled=true, platformName=linux}]
Session ID: b1b9f58a-d08e-415c-bbc0-838fba52b474
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115)
    at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
    at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:573)
    at org.openqa.selenium.server.htmlrunner.CoreTestCase.getLoggableTests(CoreTestCase.java:83)
    at org.openqa.selenium.server.htmlrunner.CoreTestCase.run(CoreTestCase.java:64)
    at org.openqa.selenium.server.htmlrunner.CoreTestSuite.run(CoreTestSuite.java:73)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:120)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:245)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)

Contents of suite-file fritzbox_test.suite:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNsVQ5b0cvVPgxg0Xh4xeYLHef5w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNsVQ5b0cvVPgxg0Xh4xeYLHef5w&#39;;return true;">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPnvHmzp7QdvEjpI1OxPKiChMEFw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPnvHmzp7QdvEjpI1OxPKiChMEFw&#39;;return true;">http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  <title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="fritzbox_test.case">fritzbox_test</a></td></tr>
</tbody></table>
</body>
</html>

Contents of case-file fritzbox_test.case:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNsVQ5b0cvVPgxg0Xh4xeYLHef5w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-strict.dtd\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNsVQ5b0cvVPgxg0Xh4xeYLHef5w&#39;;return true;">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPnvHmzp7QdvEjpI1OxPKiChMEFw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPnvHmzp7QdvEjpI1OxPKiChMEFw&#39;;return true;">http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="<a href="http://selenium-ide.openqa.org/profiles/test-case" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fselenium-ide.openqa.org%2Fprofiles%2Ftest-case\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIDar6ie97WAOCwtEgBsWRM3mAhA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fselenium-ide.openqa.org%2Fprofiles%2Ftest-case\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGIDar6ie97WAOCwtEgBsWRM3mAhA&#39;;return true;">http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="<a href="http://fritz.box/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ffritz.box%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHs2GV4MGnDC_FR165y-9gPSAn3NQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ffritz.box%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHs2GV4MGnDC_FR165y-9gPSAn3NQ&#39;;return true;">http://fritz.box/" />
<title>fritzbox_test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">fritzbox_test</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>/</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=uiPass</td>
    <td>password</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>id=submitLoginBtn</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=blueBarUserMenuIcon</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=logout</td>
    <td></td>
</tr>
</tbody></table>
</body>
</html>


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/58f10456-1752-44a5-989a-2b507db190ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error using Selenium Html Runner 3.4.0

guillaumemuller75421354
In reply to this post by Albert Ruthnik
The error is :
 TypeError: document.body is undefined

In my case it was due to the fact that my test files were nammed xxx.xml. Renamming them to xxx.html was sufficient.

Maybe you have a similar problem (have you checked the HTML validity in a good code/text editor?)

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f84bb5de-f64a-4b03-816a-84a66c034406%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.