Create new session via curl

Hello. How to create new session via curl. I’m trying, but I get error

curl -X POST -H "Content-Type: application/json;charset=UTF-8, accept: application/json" -d '{"desiredCapabilities":{"deviceName":"Google Nexus","platformVersion":"5.1","platformName":"Android","appPackage":"com.myapp","appActivity":".ui.activity.JumpoffActivity","unicodeKeyboard":"true"}}' http://localhost:4723/wd/hub/session

Parameters were incorrect. We wanted “we require one of “desiredCapabilities” or “capabilities” object” and you sent {}

1 Like