Control UI - wait until clicked
Posted: 01 Mar 2016 15:13
Hi,
I have created a flow that uses the control UI action.
It basically clicks a button, waits three seconds for the next screen to load and then clicks another button.
It all works just fine, but I had to set the wait time to 3 seconds to make sure that the next screen has loaded before automagic tries to click the next button (defined by the name of the button, not by coordinates).
The loading time varies between 1-3 seconds though, so I was wondering if I could get automagic to try clicking the button every 200ms until successfully clicked, for a maximum time of 5 seconds, to make sure that the script does not run infinitely if something goes wrong.
Is there any way of achieving this?
Thanks in advance
Jan
I have created a flow that uses the control UI action.
It basically clicks a button, waits three seconds for the next screen to load and then clicks another button.
It all works just fine, but I had to set the wait time to 3 seconds to make sure that the next screen has loaded before automagic tries to click the next button (defined by the name of the button, not by coordinates).
The loading time varies between 1-3 seconds though, so I was wondering if I could get automagic to try clicking the button every 200ms until successfully clicked, for a maximum time of 5 seconds, to make sure that the script does not run infinitely if something goes wrong.
Is there any way of achieving this?
Thanks in advance
Jan