You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for raising this! i open a new issue to explore this - #299
Will take some time, because I maintain the Python version in my personal free time. There are generally 2 ideas, 1 is a function hook. 1 is an option to raise error so that users can do a try-catch design.
For the time being, you can do -
ifr.click() andr.type() andetcetc:
print('SUCCESS')
# do success actionsifnotr.click() andnotr.type() and ...:
print('FAIL')
# do fail actions
Above works because each function call will return True or False depending on whether it is successful.
You can also split into multiple lines if you want the Python script to be neater -
ifr.click() and \
r.type() and \
...:
print('SUCCESS')