Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created July 21, 2022 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SarahElson/3c3af75c6d1aeefff67587a44a65bb21 to your computer and use it in GitHub Desktop.
Save SarahElson/3c3af75c6d1aeefff67587a44a65bb21 to your computer and use it in GitHub Desktop.
How To Handle Errors and Exceptions In Selenium Python
ch_capabilities = {
'LT:Options': {
"user": "<username>",
"accessKey": "<accesskey>",
"build": "StaleElementReferenceException Test on Chrome",
"name": "StaleElementReferenceException Test on Chrome",
"platformName": "Windows 10"
},
"browserName": "Chrome",
"browserVersion": "102.0",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment