Skip to content

Instantly share code, notes, and snippets.

@JamesCullum
Last active May 28, 2021 12:02
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 JamesCullum/2f3722233960d2e9b5512efc0fd02e1c to your computer and use it in GitHub Desktop.
Save JamesCullum/2f3722233960d2e9b5512efc0fd02e1c to your computer and use it in GitHub Desktop.
Using the Chrome plugin UI.VISION (https://chrome.google.com/webstore/detail/uivision-rpa/gcbalfbdmfieckjlnblleoemohcganoc), check every 3s on a zollsoft.de calendar if a vaccination appointment for Johnson&Johnson or BionTech is available, and if so, take the first appointment and book it
{
"Name": "zollsoft - vaccine book",
"CreationDate": "2021-5-28",
"Commands": [
{
"Command": "store",
"Target": "3",
"Value": "!timeout_wait",
"Description": ""
},
{
"Command": "onError",
"Target": "#restart",
"Value": "",
"Description": ""
},
{
"Command": "label",
"Target": "start",
"Value": "",
"Description": ""
},
{
"Command": "answerOnNextPrompt",
"Target": "OK",
"Value": "",
"Description": ""
},
{
"Command": "deleteAllCookies",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "open",
"Target": "https://onlinetermine.zollsoft.de/patientenTermine.php?uniqueident=607feb7a343fb",
"Value": "",
"Description": ""
},
{
"Command": "verifyElementPresent",
"Target": "xpath=//h3[contains(text(), \"Johnson\") or contains(text(), \"Bion\")]",
"Value": "",
"Description": ""
},
{
"Command": "gotoIf_v2",
"Target": "${!statusOK} == false",
"Value": "start",
"Description": ""
},
{
"Command": "verifyElementPresent",
"Target": "id=besuchsgrund-div-no-termine",
"Value": "",
"Targets": [
"id=besuchsgrund-div-no-termine",
"xpath=//*[@id=\"besuchsgrund-div-no-termine\"]",
"xpath=//div[@id='besuchsgrund-div-no-termine']",
"xpath=//div[3]/div/div/div/div[2]/div",
"css=#besuchsgrund-div-no-termine"
],
"Description": ""
},
{
"Command": "gotoIf_v2",
"Target": "${!statusOK} == true",
"Value": "start",
"Description": ""
},
{
"Command": "echo",
"Target": "Appointment found",
"Value": "#shownotification",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//h3[contains(text(), \"Johnson\") or contains(text(), \"Bion\")]",
"Value": "",
"Targets": [
"id=besuchsgrund-radio-e1-0",
"name=besuchsgrund",
"xpath=//*[@id=\"besuchsgrund-radio-e1-0\"]",
"xpath=//input[@id='besuchsgrund-radio-e1-0']",
"xpath=//input",
"css=#besuchsgrund-radio-e1-0"
],
"Description": ""
},
{
"Command": "click",
"Target": "css=div.accordion__body:not(.accordion__body--hidden) input[name='besuchsgrund']",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "css=#main-div-buttons-wrapper2-e2 > button.btn-forward.btn-primar",
"Value": "",
"Targets": [
"xpath=//*[@id=\"main-div-buttons-wrapper2-e2\"]/button[2]",
"xpath=//div[4]/div/button[2]",
"css=#main-div-buttons-wrapper2-e2 > button.btn-forward.btn-primar"
],
"Description": ""
},
{
"Command": "click",
"Target": "name=termin",
"Value": "",
"Targets": [
"id=termine-radio-e1-18337348222",
"name=termin",
"xpath=//*[@id=\"termine-radio-e1-18337348222\"]",
"xpath=//input[@id='termine-radio-e1-18337348222']",
"xpath=//div[2]/div/div[2]/table/tbody/tr/td/input",
"css=#termine-radio-e1-18337348222"
],
"Description": ""
},
{
"Command": "click",
"Target": "css=#main-div-buttons-wrapper2-e2 > button.btn-forward.btn-primar",
"Value": "",
"Targets": [
"xpath=//*[@id=\"main-div-buttons-wrapper2-e2\"]/button[2]",
"xpath=//div[4]/div/button[2]",
"css=#main-div-buttons-wrapper2-e2 > button.btn-forward.btn-primar"
],
"Description": ""
},
{
"Command": "type",
"Target": "id=vn",
"Value": "Max",
"Targets": [
"id=vn",
"name=vn",
"xpath=//*[@id=\"vn\"]",
"xpath=//input[@id='vn']",
"xpath=//label/input",
"css=#vn"
],
"Description": ""
},
{
"Command": "type",
"Target": "id=nn",
"Value": "Mustermann",
"Targets": [
"id=nn",
"name=nn",
"xpath=//*[@id=\"nn\"]",
"xpath=//input[@id='nn']",
"xpath=//label[2]/input",
"css=#nn"
],
"Description": ""
},
{
"Command": "type",
"Target": "id=geb",
"Value": "01.01.1970",
"Targets": [
"id=geb",
"name=geb",
"xpath=//*[@id=\"geb\"]",
"xpath=//input[@id='geb']",
"xpath=//label[3]/input",
"css=#geb"
],
"Description": ""
},
{
"Command": "type",
"Target": "id=tel",
"Value": "01621234567",
"Targets": [
"id=tel",
"name=tel",
"xpath=//*[@id=\"tel\"]",
"xpath=//input[@id='tel']",
"xpath=//label[4]/input",
"css=#tel"
],
"Description": ""
},
{
"Command": "type",
"Target": "id=email",
"Value": "max.mustermann@web.de",
"Targets": [
"id=email",
"name=email",
"xpath=//*[@id=\"email\"]",
"xpath=//input[@id='email']",
"xpath=//label[5]/input",
"css=#email"
],
"Description": ""
},
{
"Command": "check",
"Target": "id=storno",
"Value": "",
"Targets": [
"id=storno",
"name=storno",
"xpath=//*[@id=\"storno\"]",
"xpath=//input[@id='storno']",
"xpath=//span/input",
"css=#storno"
],
"Description": ""
},
{
"Command": "clickAndWait",
"Target": "css=#main-div-buttons-wrapper2-e2 > button.btn-forward.btn-primar",
"Value": "",
"Description": ""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment