-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request body does not contain required parameter 'capabilities'. #6026
Comments
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 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. |
For me, it was choking on the 'await', but this works:
using node v8.12.0 |
Hello, could you please help me, I have the same problem, when perform tests (selenium/c#/Safari 12). Current window:page-6CF4B0C0-1AD6-43A0-8E64-2F9EC720E260 New window:page-6CF4B0C0-1AD6-43A0-8E64-2F9EC720E260 error: |
update selenium-webdriver to the latest version. 3.4.0 is almost 2 years old and you will need a newer version that uses the (W3C) webdriver protocol. |
Looks like the fix suggested here is no longer working in Safari 12.1: #6431 (comment) |
The only reason the SeleniumJS 4 bindings are not marked as production ready is because we've yet to release Selenium 4 itself. We'll update the name of the bindings and push them to npm soon. |
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?
The text was updated successfully, but these errors were encountered: