Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Run Selenium test via curl
s_id=`curl -X POST -d '{"desiredCapabilities":{"browserName":"firefox","platform":"MAC"}}'|awk -F'"' '{print $6}'`
curl -X POST$s_id/url -d '{"url":""}'
curl -X POST$s_id/element -d '{"using":"id","value":"gbqfq"}'
curl -X POST$s_id/element/0/value -d {"value":["selenium"]}
curl -X POST$s_id/element -d '{"using":"id","value":"gbqfb"}'
curl -X POST$s_id/element/1/click
curl -X DELETE$s_id/window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.