Check App State not working

Hi All,

My Check App state is not working even after putting a delay. There is a pop up which it needs to check but everytime it goes to else part.


hi @marina.dutta

Can you share the screenshot for properties as well?
Also can you replace the ctrl name in second line to *.netsuite.com says"
Set Wait for page load to Interactive, along with a strict selector.

Thanks

Hi @marina.dutta

When you are indicating the element on the screen, check the strict selectors and uncheck the fuzzy and Image.
Check the below image for better understanding

And change the time in check app state from 30 to 60 seconds.
Open the properties of check app state and in the target properties, Change the Wait for page load option to Complete.

Hope it helps!!

Hey @marina.dutta ,
You can use “Element exists” also and try
Or check the selectors of the popup and make it dynamic

Hope it helps you out!

Using strict and deselecting fuzzy and image isn’t necessarily a solution. Those are useful selectors depending on the situation.

If it’s a popup, it may be seen as a new window which Check App State can’t handle. Try Element Exists as it will have its own entire selector. After the Element Exists you use an If, and in the Then block another Use Application/Browser to attach to the popup with a click to click Ok.

Yes but in this case, the popup element is same for every time that’s why I suggested to check the strict selector @postwick

That isn’t going to solve the problem if Check App State can’t find the popup. Usually this is because it’s seen as a separate window from the original, which Check App State can’t handle.

Okay @postwick

As you suggested have to use the element exist activity which holds whole selector.

@marina.dutta - Two solutions.

  1. Wrap your Check App State inside an additional Use Application/Browser activity that you would then point to the popup window as the top level selector, which will allow the Check App State to find that popup. Ensure the Options - Open and Options - Close properties are both set to Never to ensure your activities are what handles the popup.
  2. As others have suggested, use the older “Element Exists” activity, as it does not use an existing Window Selector and a given Element Selector, but a single given selector.

Either one works.

@postwick

Check app state does not require a scope and it can look at different windows also…unless we are not giving any window selector in it

@marina.dutta

looking at the selector provided may be the chromewidget_1 can be an issue…also other numbers that are present in the name attribute also might be issue…they might be varying…please check on the proper selector

cheers

This must be a recent change because it used to. Thanks for the update.

1 Like

@Anil_G

The numbers in name attribute are constant numbers .They dont change. Hence I did not replaced with *

Its going to else part even if the pop is showing

@marina.dutta

  1. Did you validate the selector when it is failing?
  2. Did you happen to give the window selector as well as it is a second window

cheers

@Anil_G

Validate the selectors. The selectors are showing green.

I have used element exist now. its able to identify the pop up but the click OK is not working .Its not throwing any error also but once OK button is clicked its giving one blank additional page window and then navigating to main page .Manually when I click this intermediate blank page does not come after clicking Ok of Pop up. It directly navigates to main page. Recently I upgraded UiPath version after that click and check app not working properly