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:
- Created 3 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Hello!
Good news: This bug will be closed in the next release of IEDriver!
@Westsaid according to the logs the right data is being send to the driver: