Skip to content

Instantly share code, notes, and snippets.

@dreygur
Last active June 6, 2022 08:55
Show Gist options
  • Select an option

  • Save dreygur/6bbf5e4080840a17b687841f4c19260a to your computer and use it in GitHub Desktop.

Select an option

Save dreygur/6bbf5e4080840a17b687841f4c19260a to your computer and use it in GitHub Desktop.
import requests
uri = "http://localhost:3333/session"
header = {
"content-type": "application/json",
}
# Creates a new session
res = requests.post(uri, json={
"capabilities": {
"alwaysMatch": {
"acceptInsecureCerts": True
}
}
}, headers=header)
print(res.json().get("value").get("sessionId"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment