Skip to content

Instantly share code, notes, and snippets.

@redgeoff
Created March 2, 2022 23:04
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 redgeoff/16c89686f794d2de6494add1c95f307a to your computer and use it in GitHub Desktop.
Save redgeoff/16c89686f794d2de6494add1c95f307a to your computer and use it in GitHub Desktop.
Grocery Shopping Bot: Mark Todoist Items Completed
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