Detect User Click
I am logging into a website using my own credentials, but 2FA is active. Therefore, I need a way to 'pause' the script until I manually click the button with my mouse. Note that th
Solution 1:
Here is a solution that may not work for everybody. Poll the URL...
poll_rate = 1
current_url = driver.current_url
while driver.current_url == current_url:
time.sleep(poll_rate)
Can anybody come up with a better solution?!
I am shocked that it is almost impossible to detect user input in a practical manner.
Post a Comment for "Detect User Click"