question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get Internet Explorer to run using Standalone runner

See original GitHub issue

💬 Questions and Help

Hello guys, anyone got IEDriver to run when using wdio standalone? I receive following error: “The value of the ‘parameter’ attribute is not a JSON object”, idk why but it seems like wdio does not send any parameters to the ie server…

Error Log:

`.\IEDriverServer.exe --port=4448 --log-level=DEBUG I 2020-07-06 16:59:35:051 C:\Projects\webdriver\cpp\webdriver-server\server.cc(87) Starting WebDriver server on port: ‘4448’ on host: ‘’ I 2020-07-06 16:59:35:051 C:\Projects\webdriver\cpp\iedriver\IEServer.cpp(33) Driver version: 3.150.1.0 (64-bit) Started InternetExplorerDriver server (64-bit) 3.150.1.0 Listening on port 4448 Log level is set to DEBUG Only local connections are allowed D 2020-07-06 16:59:55:258 C:\Projects\webdriver\cpp\webdriver-server\server.cc(338) Command: POST /session D 2020-07-06 16:59:55:259 C:\Projects\webdriver\cpp\iedriver\IESession.cpp(60) Mutex acquired for session initalization D 2020-07-06 16:59:55:266 C:\Projects\webdriver\cpp\iedriver\IESession.cpp(116) Releasing session initialization mutex D 2020-07-06 16:59:55:266 C:\Projects\webdriver\cpp\webdriver-server\command.cc(36) Raw JSON command: { “name” : “newSession”, “locator” : { }, “parameters” : } W 2020-07-06 16:59:55:266 C:\Projects\webdriver\cpp\webdriver-server\command.cc(49) Failed to parse configuration due to * Line 1, Column 59 Syntax error: value, object or array expected.

JSON command: ‘{ “name” : “newSession”, “locator” : { }, “parameters” : }’ W 2020-07-06 16:59:55:267 C:\Projects\webdriver\cpp\webdriver-server\command.cc(72) The value of the ‘parameters’ attribute is not a JSON object. This is invalid for the WebDriver JSON Wire Protocol. D 2020-07-06 16:59:55:268 C:\Projects\webdriver\cpp\webdriver-server\command.cc(36) Raw JSON command: { “name” : “newSession”, “locator” : { }, “parameters” : }
W 2020-07-06 16:59:55:268 C:\Projects\webdriver\cpp\webdriver-server\command.cc(49) Failed to parse configuration due to * Line 1, Column 59 Syntax error: value, object or array expected.

JSON command: ‘{ “name” : “newSession”, “locator” : { }, “parameters” : }’ W 2020-07-06 16:59:55:269 C:\Projects\webdriver\cpp\webdriver-server\command.cc(72) The value of the ‘parameters’ attribute is not a JSON object. This is invalid for the WebDriver JSON Wire Protocol. D 2020-07-06 16:59:55:270 C:\Projects\webdriver\cpp\iedriver\IECommandExecutor.cpp(935) Setting serialized response to { “value” : { “error” : “invalid argument”, “message” : “parameters property of command is not a valid JSON object”, “stacktrace” : “” } } D 2020-07-06 16:59:55:271 C:\Projects\webdriver\cpp\iedriver\IECommandExecutor.cpp(936) Is waiting flag: 0 D 2020-07-06 16:59:55:281 C:\Projects\webdriver\cpp\webdriver-server\server.cc(421) Response: { “value” : { “error” : “invalid argument”, “message” : “parameters property of command is not a valid JSON object”, “stacktrace” : “” } } `

Reproducible example

First start IEDriver like this: “.\IEDriverServer.exe --port=4448 --log-level=DEBUG”

Then run this code: `const { remote } = require(“webdriverio”); let browsers = []

callTests(new Array(10)).then(erg => { console.log(“Done”) }) async function main(nsc, i) { //console.log(Started test: ${testcase}@${nsc} (${i+1}/${allNSC.length})) const browser = await remote({ capabilities : { browserName: “internet explorer”, }, port:4448, logLevel: “error”, outputDir: __dirname + “…/…/…/logs/” }) browsers[i] = browser

global.browser = browser;
let url = "https://www.nytimes.com/"
await browser.url(url)


await browser.deleteSession()
await delete browser
await delete browsers[i]

}

function callTests(arr, i) { return new Promise(res => { if (i == undefined) i = 0 let error = false main(arr[i], i).catch(async e => { console.error(e, arr[i]) error = e await browsers[i].deleteSession(); await delete browsers[i] }).then(async erg => { if (i < arr.length - 1) return res(callTests(arr, ++i)) else res() }); }) }`

Please note that this issue tracker is not a help form and this issue will be closed.

For questions or help please see:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Westsaidcommented, Aug 18, 2020

Hello!

Good news: This bug will be closed in the next release of IEDriver!

1reaction
christian-bromanncommented, Jul 14, 2020

@Westsaid according to the logs the right data is being send to the driver:

2020-07-07T09:31:37.507Z INFO webdriverio: Initiate new session using the webdriver protocol
2020-07-07T09:31:37.522Z INFO webdriver: [POST] http://localhost:4448/session
2020-07-07T09:31:37.523Z INFO webdriver: DATA {
  capabilities: {
    alwaysMatch: { browserName: 'internet explorer' },
    firstMatch: [ {} ]
  },
  desiredCapabilities: { browserName: 'internet explorer' }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Download Internet Explorer 11 (Offline installer)
Language Native name Windows version Afrikaans Afrikaans Windows 7 SP1 32‑bit · Windows 7 SP1 64‑bit Albanian shqipe Windows 7 SP1 32‑bit · Windows 7...
Read more >
Internet Explorer 11 running on Windows 11 with ... - YouTube
IE 11 still exists in Windows 11 as a standalone app, although Microsoft has made a good job of hiding that. iexplore.exe command...
Read more >
Force Internet Explorer to use a specific Java Runtime ...
First, disable the currently installed version of Java. To do this, go to Control Panel > Java > Advanced > Default Java for...
Read more >
Running Selenium in Edge With IE Mode - Titus Fortner
Internet Explorer is dead! Long live IE Mode. Selenium no longer supports the standalone browser, but it does support executing Microsoft ...
Read more >
How to get rid of Internet Explorer - Virtualwarlock.net
Here we see the www.citrix.com and www.microsoft.com URLs both open in a standalone Internet Explorer. We also see that the Java.com site opens ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found