Skip to main content


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

Robotic Automation example: Rewriting the HTML of a web control

Updated on September 10, 2021

This article provides an example of how to rewrite the HTML of a web control by using Pega Robot Studio to change the behavior of the web control. You typically rewrite the HTML of a web control to redirect hyperlinks to other destinations. You can also use this capability to highlight specific controls or to make visible controls that have been hidden by the page.

To rewrite the HTML of a web control, complete the following steps:

  1. Create a new solution and add a web application.
  2. Set the StartPage to: http://training.openspan.com/login
  3. Start interrogation and interrogate the user name text box, the password text box, the Login button, and the information label found at the bottom of the sign in page.
  4. Add an Element Index match rule to the information label to ensure that it matches uniquely.
  5. Create a new automation.
  6. Add the Created event for the information label.
  7. Add the OuterHtml property for the label.
  8. Connect the Created event to the OuterHtml property.
  9. Set the OuterHtml property to: Web Adapter Certification Course.
  10. Run the solution.

When the system creates the control, its OuterHtml is rewritten. This causes a message box to display when clicked.

  • Previous topic Robotic Automation example: Integrating a ListView within an application
  • Next topic Robotic Automation example: Selecting all entries in a list box that is on a webpage

Tags

Robotics System Architect Robotic Process Automation

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