Skip to content

Instantly share code, notes, and snippets.

@roboshoes
Created August 22, 2023 01:05
Show Gist options
  • Save roboshoes/f4ba8f2c10c3ba6d3e1e36ba03f4c806 to your computer and use it in GitHub Desktop.
Save roboshoes/f4ba8f2c10c3ba6d3e1e36ba03f4c806 to your computer and use it in GitHub Desktop.
Solution to Challenge 1
{
"Name": "Challenge 1 Login",
"CreationDate": "2023-8-21",
"Commands": [
{
"Command": "open",
"Target": "https://developer.automationanywhere.com/challenges/AutomationAnywhereLabs-Login.html?_gl=1*11gchew*_ga*MTcxNzY5NDIwLjE2OTI2NDYwNjM.*_ga_DG1BTLENXK*MTY5MjY2MDE4Mi4yLjEuMTY5MjY2MDIyMC4yMi4wLjA.&_ga=2.245163589.1726161213.1692646063-171769420.1692646063&_fsi=biLWhpkR",
"Value": "",
"Description": ""
},
{
"Command": "waitForElementPresent",
"Target": "id=inputEmail",
"Value": "",
"Targets": [
"id=inputEmail",
"xpath=//*[@id=\"inputEmail\"]",
"xpath=//input[@id='inputEmail']",
"xpath=//input",
"css=#inputEmail"
],
"Description": ""
},
{
"Command": "click",
"Target": "id=inputEmail",
"Value": "",
"Targets": [
"id=inputEmail",
"xpath=//*[@id=\"inputEmail\"]",
"xpath=//input[@id='inputEmail']",
"xpath=//input",
"css=#inputEmail"
],
"Description": ""
},
{
"Command": "type",
"Target": "xpath=//*[@id=\"inputEmail\"]",
"Value": "user@automationanywhere.com",
"Targets": [
"id=inputEmail",
"xpath=//*[@id=\"inputEmail\"]",
"xpath=//input[@id='inputEmail']",
"xpath=//input",
"css=#inputEmail"
],
"Description": ""
},
{
"Command": "type",
"Target": "id=inputPassword",
"Value": "Automation123",
"Targets": [
"id=inputPassword",
"xpath=//*[@id=\"inputPassword\"]",
"xpath=//input[@id='inputPassword']",
"xpath=//div[2]/input",
"css=#inputPassword"
],
"Description": ""
},
{
"Command": "click",
"Target": "xpath=/html/body/main/div/div/div[2]/div/div/div[2]/div/form/button",
"Value": "",
"Targets": [
"xpath=/html/body/main/div/div/div[2]/div/div/div[2]/div/form/button",
"xpath=//button[@type='button']",
"xpath=//button",
"css=body > main > div.container-fluid > div > div.col-md-8.col-lg-6 > div > div > div:nth-child(2) > div > form > button"
],
"Description": ""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment