Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save altendky/7a488870120ede4a6eccfd612d94b4df to your computer and use it in GitHub Desktop.
Save altendky/7a488870120ede4a6eccfd612d94b4df to your computer and use it in GitHub Desktop.
event is a custom object defined above
buttons = re.findall(r"text='([-\w ]*)'", event.stringify(), re.MULTILINE)
for number in buttons:
if number == " " or number == "View pokemon":
continue
last_request = functools.partial(event.click, text=number)
wait event.click(text=number)
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment