chromedriver
unknown
sh
3 years ago
424 B
2
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}
}
mainEditor is loading...