How to kill abnormal popup windows on website?

Dear Experts

I have to fill a specific website with information in excel one by one twice a day

But there are always one or two abnormal items(3% of full list) which trigger reminder pop-up window. In this case I have to close this pop-up window then continue process

Usually I will use [Element Exist] to identify if some fixed elements exist in normal scenario. If that element doesn’t exist, then close the pop-up window

PS: If no pop-up windows(normal scenario), I can use [Status] as the fixed element. (This element can’t be seen if pop-up window show up)

But [Element Exist] will take 30-60 seconds to identify if fixed element does not exist
And usually we have around 100 items to handle in each batch
I am afraid the overall run time will be quite long if I use [Element Exist]

Do you have other ideas on this case for better efficiency?

Thanks
Ivan

You can reduce the wait time from property.

Also Use click activity to click on ok for every record just change these two property

  1. Continue on error = True/Checked
  2. Timeout = 1-2 or any good amount of time

@ashokkarale

If pop-up window show up and I select continue on error in property, will it not able to click the correct button in normal scenario? If yes, the workflow will fail directly(I think)

@yangyq10,

Instead of checking the popup using check app state or Element exists activity, directly use classic Click activity which will have full selectors so it will be able to click on the Ui Element directly.

What this will do it, if the popup with Ok button comes up, click it if not it will fail but as we are enabling continue on error, it will not throw any exception and remaining workflow will work normally.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.