I am trying to create a session using chromedriver and W3C WebDriver specification. The issue that I'm facing is that whenever I try to hit the /session endpoint I get the message "missing command parameters" as a response.
My Capabilities JSON :
{"browserName":chrome,"capabilities":{{"goog:chromeOptions":{"w3c":true,"debuggerAddress":"localhost: 52759"},"platform":MAC,"platformName":MAC,"version":74.0.3729.131}}}
Command & O/P :
ishabbi@Ishs-MacBook-Pro:~$ curl -v -XPOST "http://localhost:9515/session" -d '{"browserName":chrome,"capabilities":{{"goog:chromeOptions":{"w3c":true,"debuggerAddress":"localhost: 52759"},"platform":MAC,"platformName":MAC,"version":74.0.3729.131}}}'
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 9515 (#0)
> POST /session HTTP/1.1
> Host: localhost:9515
> User-Agent: curl/7.54.0
> Accept: */*
> Content-Length: 170
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 170 out of 170 bytes
< HTTP/1.1 400 Bad Request
< Content-Length:26
< Content-Type:text/plain
< Connection:close
<
* Closing connection 0
missing command parameters
Can anyone help me with the above request? I'm able to create sessions in geckodriver without any issues.
Thanks,
Ish
--
You received this message because you are subscribed to the Google Groups "ChromeDriver Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.