I want to wait until the button gets enabled and then click, which activities should I use?.
I used get attribute to check its state.
Should I use while condition?
1 Like
Hey @Bhushan_Nagaonkar You can approach it like this.
- Use the “Element Exists” activity: Place an “Element Exists” activity before the button click action in your workflow. Configure the activity to check for the existence of the button element. This activity will output a Boolean variable indicating whether the button is present on the screen.
- Use a “Do While” loop: Wrap the button click action with a “Do While” loop. Set the loop condition to check whether the button exists (the Boolean variable from the “Element Exists” activity). This loop will keep running until the button becomes enabled.
- Use a “Delay” activity: Inside the loop, add a “Delay” activity to introduce a small delay between iterations. This delay is essential to avoid excessive CPU usage.
- Click on the button: Once the loop condition is satisfied (the button is enabled), add a “Click” activity to click on the button.
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.