Check App State works for one but not for the other

Hi everyone,

I’m facing an issue with a Check App State activity in an unattended automation. My process involves:

  1. Logging into a website using three different accounts.
  2. Entering details in a form and clicking “Search.”
  3. Waiting for the results table to load before proceeding.

Since the result table’s UI selectors are highly dynamic, I cannot use a Check App State directly on it. Instead, I use it on the “Search” button to detect when it reappears, assuming that means the table has loaded.

This approach has been working perfectly for months with all three accounts. However, recently, for one specific account, the Check App State fails in unattended mode but works fine in attended mode.

I even tried adding another Check App State inside the existing one for the same element, which initially worked, but now even that doesn’t. There have been no changes to the website, UI selectors, or elements.

I’m using UiPath 2022.10.5. Has anyone encountered a similar issue? Any insights on why this might be happening or possible solutions would be greatly appreciated!

Thanks!

1 Like

Hi @Melroy_Dsa

Did you try using Check App State (Element Disappear) on the Loading Element?

While developing, the loading screen disappeared too fast, so I couldn’t use a Check App State with Element Disappears for it.

I even tried using a classic activity, but that didn’t help either. Even when the loading screen was still there, it kept saying the “Search” button had already appeared. So, classic activities are pretty much out of the question here.

@Anil_G @ashokkarale @Yoichi , any help would be appreciated :melting_face:

@Melroy_Dsa
please try cv element exist once

cheers!!

@Melroy_Dsa

So here the functionality what you are trying is worked earlier but now it was not working right?

did you tried by re indicating the same element before changing logic of your code.
even if its not worked then try to estimate how much time it is taking and in properties pass some time in timeout section and enable wait for page load as complete

Re-indicating the element hasn’t worked so far, and I can’t use the Wait for Page Load activity since the page itself doesn’t refresh—only the component inside updates asynchronously.

one thing i want to let you know that Wait for page load is not activity, in check app state there is properties section in that under the target you are able to see wait for page load property will be there, modify that as complete or interactive. give a try with both and see

If I switch to CV, it might not work for the other selectors since Check App State is already working fine for them. Plus, even in this case, when I nested the Check App State, it was actually working before.

I can’t fully rely on CV here, as it might introduce inconsistencies with the existing selectors.


I’ve already tried this, and the same property works fine for the other accounts. This issue only happens with one specific account.

Okay..

instead of only search button did you tried with any other elements.

lets assume after loading you may get datatable that data was dynamic but did you check headers or any section same for all accounts

and another

try to look for URL while loading after loading is there any changes happening in the URL.
if any changes are happening then you can go with that URL

@Melroy_Dsa

normally in this scenario…we need to indicate the search button before load and after load and check if there are any differences in selector

then table even if it is dynamic try to target the first row first column value or a header value which might come and try waiting for that

alternately use two check app states one for the loading icon to appear and other for disappear and if it does not appear then the assumption would be it is already loaded and if appeared it would disappear anyways after load

cheers

1 Like

@Anil_G
I didn’t use this approach exactly, but it gave me an idea. In UiPath, I used the Object Repository, where I had two objects—one for clicking the search button and another for checking if the page was loaded (Check App State). Instead of using the object meant for checking if the page was loaded, I used the object for clicking the search button in the Check App State activity.

This now works perfectly. Thanks for all the help!

2 Likes

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