chromedriver
unknown
sh
2 years ago
424 B
1
Indexable
#!/usr/bin/env bash get_session_id() { curl -s -X POST -H 'Content-Type: application/json' \ -d '{ "desiredCapabilities": { "browserName": "chrome" } }' \ ${ROOT}/session | jq -r '.sessionId' } main() { ROOT=http://localhost:9515 time SESSION_ID=$(get_session_id) sleep 4 BASE_URL=${ROOT}/session/${SESSION_ID} curl -X DELETE ${BASE_URL} } main
Editor is loading...