Unable to Detect "Save Print Output As" Window in Background During Automation

Hello UiPath Community,

I am facing an issue while automating a desktop application where I need to save a PDF using “Microsoft Print to PDF.” During the automation, there is a step where the “Save Print Output As” dialog box opens up, as shown in the attached screenshot. However, I am unable to detect this dialog box using the “Check App State” activity because it opens in the background, and the automation fails to interact with it.

Challenges:

  • The “Save Print Output As” dialog appears in the background, making it hard to detect with standard activities like “Check App State.”
  • The application I am automating is slow in generating the PDF, which causes delays before this dialog box appears, further complicating detection and interaction.
  • This step is crucial as it is the only way to download the PDF, and I need to automate this without manual intervention.

Attempts Made:

  • Tried using “Check App State,” but it doesn’t detect the window when it opens in the background.
  • Attempted using delays and retry scopes, but they are not reliable due to varying load times of the application.

Questions:

  1. Is there a way to bring the “Save Print Output As” dialog to the foreground automatically using UiPath?
  2. Are there any alternative approaches or activities that can reliably detect this window, even if it opens in the background?
  3. Any suggestions on handling slow load times to ensure the automation waits until the dialog box is fully available for interaction?

Your insights or any guidance on how to handle this scenario would be highly appreciated!

Thank you in advance!

@Avyan.Sharma,

Use Activate activity.

image

Activate activity is the solution.

Configure Timeout property as pr need. This will ensure your activity will wait till the window appears. For example I set it to 60 seconds, if your window appears before that, it will move to next actions without waiting till timeout.

Thanks,
Ashok :slight_smile:

@Avyan.Sharma,

You can refer this solution also.

Thanks,
Ashok :slight_smile:

1 Like

Hello @Avyan.Sharma

Please try with an “Use Application/Browser” activity with this window selector:

image

And then drag an “Activate” activity within this Use Application as @ashokkarale suggests.

Regards,
Soren

1 Like

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