SAP GUI Security Pop Up Clicks Fail - Unattended session

Here is the issue I am running into

  • I want to click on Allow for the SAP GUI Security Pop up
  • I am using click image as other clicks did not work but with this when running on the debug I was able to click though and go to the next flows but the issue arises when running unattended - I read online and updated some session settings such as resolution width (1920) Resolution Height (1080) and resolution depth (32) under
    Advanced robot options but still the issue is persistent when I run the process unattended.
    FYI - we cannot change the SAP configuration not to trigger the pop up as that is part of the group policy -
    @Anil_G @Yoichi

Thank you,
Sisay

Hi @Sisay_Dinku

Is the popup showing up every time you try to run the process or it’s random?

it’s better to first check for the popup visibility.

Use check app state to see if popup showed up, if yes, then go and click the image you are trying to else proceed normally.

Also how are trying to click, using modern click activity? If yes then that activity automatically recognizes the cv or image parts in the element and creates a selector.

Hi @sonaliaggarwal47
Thanks for the prompt response -
The pop up happens every time the process exports excel file to the local folder.
Yes, modern click activity - Also, I’d like to emphasize that I am able to run (click on allow and go to the next flow) it on a debug mode but fails to click on “Allow” when running unattended.

Thanks

Hi,

For now, can you check video or screenshot when error occurs, using Job Recording feature in Orchestrator?

If there is no video or screenshot, it may be session matter. Can you try to make all the users log off before run robot?

Regards,

Hi @Sisay_Dinku

When you say debug mode, have you tried “running” the process instead of debug mode. Does it run fine then? If it doesn’t then it can be an issue that process runs too fast and skipping the part of clicking .

Please note that Debug run is usually slower than the run mode, so adding some delay or checking the app state before trying to click really helps.

But if process runs fine in run mode like debug mode but fails only during unattended session then I would suggest to take screenshot before the click activity and right after the click activity as well so as to shed light on what is showing up in screen when bot is trying to click the popup.

Also enabling properties for click activity like simulate click or send window messages also helps.

@Sisay_Dinku

If you have to always click on Allow then it’s better to disable the popup itself.

Hi Yoichi,

Sorry I have corrections to make - I was running the Run file from the bot server (using the bot/service account) not from orchestrator. When I said unattended I meant not on a debug mode

Here is the SAP Pop up that needs to be clicked for the excel files to be successfully downloaded - this not an issue when running on the debug mode

Here is the error you might see - image not found

Here are advanced robot options I added even though that did not seem to have solved the issue

Thanks,
Sisay

@ashokkarale - that would have been a great resolution, but it is part of the group policy - when someday upgrade or patching happens it is going to happen again

1 Like

When running the run file (not debug) the issue arises.

Thanks

@Yoichi - I meant to tag - on the follow up message.

@Sisay_Dinku,

Have you tried Classic Click activity which uses Full Selectors.

@Sisay_Dinku

So you are saying when you are running by clicking debug, bot is able to click?

But when you click on run/run file, bot is not able to click?

And you are trying attended only as of now not unattended(means not from orchestrator )?

If answer to all of the above is yes, then

  1. Do you see a popup appearing on the screen? And bot just missed to identify it?

  2. can you add activity check app state for this pop up and under target appears, add your click activity.

  3. have you tried to identify the allow element using Uiexplorer from studio? Is it able to identify ? May be you should try like this (using classic activity) and see if it works.

@Sisay_Dinku

a simpler one would be I see remember My decision option…if you do that once is it not working?

also run file is not unattended ..unattended is running from orchestartor with not logging to machine yourself

if run file fails, either it is coming as a separate window try using separate use app/browser or introduce a delay or increase timeout.(but rather than this one time handling manually would be better)

cheers

Hi Team

The only option which will work is “remember my decision”.

This is a security popup, this is why MS Windows does not allow you to automate it.
The best would be to speak to IT and explain the use case.

Best regards, Lev

1 Like

@LevKushnir - talking to internal IT team. Thank you!

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