Created
March 2, 2022 23:04
-
-
Save redgeoff/16c89686f794d2de6494add1c95f307a to your computer and use it in GitHub Desktop.
Grocery Shopping Bot: Mark Todoist Items Completed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mark Todoist Item Completed | |
[Arguments] ${id} | |
Click Element When Ready //button[@aria-describedBy='task-${id}-content'] | |
Mark Todoist Items Completed | |
[Arguments] ${items} | |
Set Local Variable ${i} 1 | |
FOR ${item} IN @{items} | |
Log To Console Marking Todoist item #${i} as completed: ${item.name} (Name in Store: ${item.name_in_store}) | |
Wait Until Keyword Succeeds 10x 2 sec Mark Todoist Item Completed ${item.id} | |
IF ${i} % 10 == 0 | |
Sleep 10 | |
ELSE | |
Sleep 2 | |
END | |
${i} Evaluate ${i}+1 | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment