chromedriver
Anonymous
sh
01/18/2023 3:15 AM
568 B
35
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...