Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRequest body does not contain required parameter 'capabilities'. #6026
Comments
barancev
added
the
C-nodejs
label
Jun 19, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tonyaveniros
Sep 19, 2018
I just upgraded to Safari 12 and now all my Selenium / WebDriver tests are failing with the error.
SessionNotCreatedError: Request body does not contain required parameter 'capabilities'.
Which is peculiar because I have defined capabilities.
High Sierra 10.13.6 (17G65) with Safari Version 12.0 (13606.2.11)
tonyaveniros
commented
Sep 19, 2018
•
|
I just upgraded to Safari 12 and now all my Selenium / WebDriver tests are failing with the error. Which is peculiar because I have defined capabilities. High Sierra 10.13.6 (17G65) with Safari Version 12.0 (13606.2.11) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mjdease
Sep 21, 2018
This issue happens because Safari 12 uses a new (W3C) webdriver protocol which appears incompatible with selenium-webdriver v3.6
safaridriver can be passed a --legacy flag to use the old protocol.
I got this working in my project with the following:
const webdriver = require('selenium-webdriver');
const safari = require('selenium-webdriver/safari');
new webdriver.Builder()
.usingServer(await new safari.ServiceBuilder().addArguments('--legacy').build().start())
.forBrowser('safari')
.build();More details in #6431
Edit: pinging @jleyba FYI it appears the latest stable version of the node package doesn't work by default with Safari 12 which is now generally available.
mjdease
commented
Sep 21, 2018
•
|
This issue happens because Safari 12 uses a new (W3C) webdriver protocol which appears incompatible with selenium-webdriver v3.6
I got this working in my project with the following: const webdriver = require('selenium-webdriver');
const safari = require('selenium-webdriver/safari');
new webdriver.Builder()
.usingServer(await new safari.ServiceBuilder().addArguments('--legacy').build().start())
.forBrowser('safari')
.build();More details in #6431 Edit: pinging @jleyba FYI it appears the latest stable version of the node package doesn't work by default with Safari 12 which is now generally available. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tonyaveniros
Sep 21, 2018
For me, it was choking on the 'await', but this works:
new webdriver.Builder()
.usingServer( new safari.ServiceBuilder().addArguments('--legacy').build().start())
.forBrowser('safari')
.build();
using node v8.12.0
tonyaveniros
commented
Sep 21, 2018
•
|
For me, it was choking on the 'await', but this works:
using node v8.12.0 |
starcwl commentedJun 15, 2018
•
edited
Meta -
OS: 10.13.4 OSX
Selenium Version: 3.6
Browser: safari
I want to use safari technology preview instead of safari
Browser Version: STP 58
Expected Behavior -
Actual Behavior -
Steps to reproduce -
so how could I contain capabilities in request body?