Check App State Not Moving to 'Does not appear'

Hi There -

I’m using a bot to cycle through a group of processes in the SAP GUI. I am requesting it to wait a box to appear. If it appears, i want it to click a box and loop back to the beginning of the process. If a box does not appear, I want it to continue on with the steps. For some reason, whenever I test this, it doesn’t ever go to the ‘does not appear’ section. Any tips on how to make this work?

Error messages below. You can see it seems to try to find the ‘if target appears’ element even though it doesn’t appear by design.

Click ‘Button Continue (Enter)’: Could not find the user-interface (UI) element for this action.

Possible solutions:
• Ensure application is opened and the UI element is visible on the screen at execution time
• Edit the Target of the UI activity and use Validation to debug the issue.
• If needed, re-indicate the element as its properties might have changed
• Use “Check state” activity to check the application state before executing the action
• Increase the “Delay before” value to allow time to the application to render entirely and become responsive

It can happen, that an element exist but is not displayed

We would recommend to do the following:

  • set some breakpoints
  • let the bot run in debug mode and fail (force it by provoking the box 1 time)
  • Use the standalone UIExplorer (Ribbon: Design, Menu Item: UiExplorer) for further analysis
    • here copy some selectors from the implementation for inspections)
  • Inspect the Attribute relativeVisibility

I a lot of scenarios we were triggered by this attribute from a dialog/popup box and handled it as:

  • element exists / check app state appear
    • No - no popup
    • Yes - theck further the relativeVisibility attribute:
      • True - box is displayed
      • False - box is not displayed

Sorry - i’m not super experienced. Are one of these settings what I should be looking at for visibility?

No, we would inspect the element within uiExplorer

I don’t think that’s something I have unfortunately.

Ok you are the case which is really working in StudioX. In such case you can use a UiAutomation Activity (e.g. click) for the analysis and comment it out when not needed

Also have a look here:

I figured this out! Is there a way to change that setting to false? Is that what I should do?

Yes. Set the “Visibility check” to “fully visible”

Before mixing up:
Statement was about: RelativeVisibility

In a next round

  • now crosscheck if box was ever displayed once before
  • is now hidden

We need to confirm that now relativeVisibility = false

Ensure that all Selectors / UiExplorer Panels are refreshed and at the current state, as this check is crucially

Hi Guys - I set the visibility check to ‘fully visible’ and now i seem to have the opposite problem where it can’t detect the object and goes straight into the ‘target does not appear’ menu.

better not mixup different options / suggestions.

So just model one option (as you have started with) complete as suggested and with assistance.

Once it will not help, then feel free and try other suggestion. But also in a clear way and complete.