Selector taking a really long time to load for popup window, and always failed to find the element in debug runs

Hi,

I am learning UiPath with the provided training, in one exercise, I am trying to add a “click” activity to close the pop up windows which appears after clicking “Add Account”.

However, the UI selector always took a very long time to load when the popup window is present. When I finally add the target element with 100% validation score, it still failed with a timeout when debugging the process.

Any ideas for why it happens? - I compared the given solution and my own target/anchor properties, they appear the same expect for the fields that differ because of the UiPath versioning.

1 Like

@Ellie.Smith

  1. for the pop up check if it needs separate use app/browser
  2. show us how you are using

cheers

1 Like

Thanks @Anil_G ,

I used the same use app/browser container as the main webpage as the UiPath tutorial does. How do i check if it needs a separate one?

attaching the file here.

Performer.zip (242.8 KB)

Hi @Ellie.Smith

I recommend you to use Check app state activity and indicate the popup. Inside target block of check app state activity insert the click activity and indicate on ok button.

Check app state activity helps to check the popup is exist or not if exists then it executes target appears block quickly. I thought it may sort your query.

Hope it helps!!

hi @mkankatala

Thanks for the reply, I have added Check App activity as suggested. It was able to run, but still it takes a few seconds to complete the steps (both check the pop up presents and clicking the “OK” button), while the other activities interacts with the main page are instant.

how can we improve the performance?

Okay @Ellie.Smith

Open the properties of Check app state activity, Extend the Target option and there is a Wait for page load option select the Interactive option in the dropdown. Do the same for the click activity which is inserted inside the Target appear block.

Check the below image for better understanding,

Hope it helps!!

Use Check APP state to know whether the pop-up is appearing or not.
IF pop-up appears use click activity to click on ok

And in the properties of wait for pageload select it as complete