Closed jontxux closed 1 year ago
I am trying the following way, but when executing with the -x flag I see that it adds single quotes and I think that gives error with geckodriver
curl -s -X POST -H '"Content-Type:' 'application/json"' -d '{
"desiredCapabilities": {
"browserName":"firefox",
"moz:firefoxOptions": {
"args": []
}
}
}' http://localhost:4444/session
get this output
{
"value": {
"error": "unknown error",
"message": "Invalid Content-Type",
"stacktrace": ""
}
}
without the single quotation marks works correctly
curl -s -X POST -H "Content-Type: application/json" -d '{
"desiredCapabilities": {
"browserName":"firefox",
"moz:firefoxOptions": {
"args": []
}
}
}' http://localhost:4444/session
output
{
"value": {
"sessionId": "390ca758-dc2d-4453-a4dd-29c154c6b37c",
"capabilities": {
"acceptInsecureCerts": false,
"browserName": "firefox",
"browserVersion": "94.0.2",
"moz:accessibilityChecks": false,
"moz:buildID": "20211119140621",
"moz:geckodriverVersion": "0.30.0",
"moz:headless": false,
"moz:processID": 10576,
"moz:profile": "/tmp/rust_mozprofilevZvBgm",
"moz:shutdownTimeout": 60000,
"moz:useNonSpecCompliantPointerOrigin": false,
"moz:webdriverClick": true,
"pageLoadStrategy": "normal",
"platformName": "linux",
"platformVersion": "5.15.0-2-amd64",
"proxy": {},
"setWindowRect": true,
"strictFileInteractability": false,
"timeouts": {
"implicit": 0,
"pageLoad": 300000,
"script": 30000
},
"unhandledPromptBehavior": "dismiss and notify"
}
}
}
@jontxux Thanks your comments! I will check.
Hi, I was thinking we could add support for more browsers. I have tested with Firefox with the following code:
This works good, but the following code returns an error
I don't know how it would be for Firefox.