Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Automate dialogs in Chrome and Edge

Updated on October 19, 2022

You can automate the File Open, File Save as, and Print dialogs in Google Chrome and Microsoft Edge in applications that use the Universal Web Adapter. You can also automate Edge permission dialogs such as the Allow multiple files to be downloaded and Allow website to use your location dialogs.

For optimal results when designing your solution, keep the following best practices in mind:

  • Use only one Universal Web Adapter in your solution to automate the dialogs. If your use case demands (or might demand in the future) that multiple applications automate the dialogs, create one adapter for each browser type. Use only that adapter for the interrogation and automation of dialogs across all the Chrome or Edge applications that are included in your solution.
  • Except for the expected nested dialogs, such as when the Print dialog opens the File Save as dialog, when you choose to save as a PDF file you can only match one dialog at a time. If two non-nested dialogs appear, the system does not match the second dialog. Be sure to plan for this situation when you create your automation.
  • You can automate only the dialogs that open after Robot Runtime starts.
  • Use Windows 10 version 20H2 or later or Windows Server 1909 or later. Earlier versions of Windows are not supported for automating Chrome or Edge dialogs.
  • Do not try to automate the File Open, File Save as, and Print dialogs concurrently in Edge and Chrome as unexpected results might occur. Plan for this situation when you create your automations.
  • Include an asterisk wildcard (*) after the printer name when you use the SelectItem method on the Printer Selection combobox because Edge displays the status of the printer after the printer name.

For optimal results when interrogating dialogs, keep the following best practices in mind:

  • Wait up to 10 seconds after displaying the dialog before interrogating a control. This gives the dialog time to fully load and time for Robot Studio to recognize all controls.
  • Ensure that the dialog is active when you interact with dialog controls.
  • Move the second dialog that displays so that it does not overlap its parent dialog when you interrogate nested modal dialogs. This is only relevant during interrogation and does not apply when the automation runs.

For optimal results when automating dialogs, keep the following best practices in mind:

  • If you update the File Name textbox in the File Save as dialog, place the text in the textbox control that is a child to the combobox control.
  • If a dialog is redrawn dynamically, such as when you automate changing the printer in the Print dialog or selecting the More settings option on the Print dialog, be sure to call rematching on the parent dialog to ensure that the system has rematched the newly created controls and those control are ready for you to interact with.
  • If you print from Edge to a PDF file, use the Save as PDF option instead of the Microsoft Print to PDF option to avoid starting another print job while one print job is still spooling.
Note: The system expects combo boxes to expand and collapse when you apply properties or methods because the content is dynamic.
  • Previous topic Interrogating HTML tables with the Universal Web Adapter
  • Next topic Using multiple Chrome and Edge adapters within a Robot Studio solution

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us