In sap automation, how to put the condition like if the popup is visible then it should do click action to that popup or else if should go to next step
can you please try with element exist or on element appear activities. It will handle the popup if occurs or it will move normally.
can you refer the below thread for refernece.
Hope it helps!!!
Elemenet exists or you can use continue on error property with the click sot hat if pop up is there it clicks else as continue on error is checked it would move to the next step without error
Cheers
I have three conditions like, from first window to second window it is taking more time to move so I added check app state, until the element comes, it wait for the element but if there is huge data , then the second window will appear or else third window will appear .
So how to put check app state and element exists activities at a time?
I have three conditions like, from first window to second window it is taking more time to move so I added check app state, until the element comes, it wait for the element but if there is huge data , then the second window will appear or else third window will appear .
So how to put check app state and element exists activities at a time?
you can use check app state or element exist in this way.
- you can use check app state or element exist after that in if condition you can use the other one if condition is false.
Don’t use both element exists and check app state. Pick one.
If you work in modern design experience use check app state, since it’s the modern replacement of element exists.
To solve the automation challenge around it, use a ‘pick’ + ‘pick branch’ solution.
2 branches:
as a condition for one: use check app state to detect a popup, as a condition for the other: use a check app state for the actual target page after the popup. As action for the popup branch: click the popup.
This will make the bot look in parallel for either a popup or the next page. If the popup comes it will be clicked, if not the bot immediately continues without wasting time waiting for a popup to not show.
Repeat this logic for each page where you can expect a popup.
can you send the sample flow
Two way
- check element exists before moving to the next item
- you can use the parallel activity to check any additional popups shown by systems, once your step one is over then stop the parallel activity by putting some flagging.
Can you send me the sample flow activities
You should be using click activity to close the popup. Make sure you are checking check box Continue on Error and give minimum timeout to avoid any delays as SAP popups comes up very quickly.
Thanks,
Ashok ![]()
but if that popup doesnot appear , the time is wasting(wait time)
You can avoid that by passing minimum timeout like 100-200 milliseconds. I think that’s reasonable. This is also better than Check App State.
Thanks,
Ashok ![]()
And then it will fail if it ever comes after 500ms on a slow day.
Never make assumptions on timeouts, but build it in such a way that it will work as fast as possible regardless of the speed of the application.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.