Skip to main content


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

Automating dialogs in Chrome and Edge

Updated on June 28, 2023

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

Notice: To interrogate language versions of Google Chrome and Microsoft Edge other than the English versions, install version 19.1.127 or later.

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 Pega Robot Runtime starts.
  • Use Windows 10 version 1909 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.
  • If you are using version 19.1.127 or later, the best practice is to interrogate unique controls on the dialog by using the Auto Control Match Rule. This helps you avoid mistakenly match to other dialogs with similar controls. Robot Studio can additionally interrogate and automate dialog windows, including but not limited to the following dialogs: Alert dialogs, Confirm dialogs, Prompt dialogs, and Authentication dialog. You can use match rules to support multiple languages in dialogs.

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 Pega 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. For more information, see ComboBoxDynamic properties, methods, and events. For more information on interrogation, see Introduction to the Interrogation Form.

 

  • Previous topic Interrogating HTML tables with the Universal Web Adapter
  • Next topic Automating applications that run on Internet Explorer

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.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us