Skip to content

Instantly share code, notes, and snippets.

@jdc-cunningham
Last active October 8, 2022 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdc-cunningham/9698c9d06660e01c66856f9a83c07018 to your computer and use it in GitHub Desktop.
Save jdc-cunningham/9698c9d06660e01c66856f9a83c07018 to your computer and use it in GitHub Desktop.
Sample app interaction JSON pattern
{
"url": "",
"auth_interactions": [
{
"type": "input",
"name": "email",
"dom_target": "input[type=email]",
"value_lookup": "random-string-for-env"
},
{
"type": "input",
"name": "password",
"dom_target": "input[type=password]",
"value_lookup": "random-string-for-env"
},
{
"type": "button",
"name": "sign in",
"dom_target": "button[type=submit]"
},
{
"type": "2fa",
"url": "",
"dom_targets": "'input[type=radio]'",
"which_node": 1
},
{
"type": "button",
"dom_target": "button[type=submit]"
},
{
"type": "input",
"name": "2fa code",
"dom_target": "input[type=text]",
"2fa_lookup": "upgrade"
},
{
"type": "button",
"dom_target": "button[type=submit]"
},
{
"type": "balance target",
"dom_target": "span[data-auto=current-balance-value]",
"spreadsheet_column": "T"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment