Deal with content that loads after the page loads
  • 24 May 2021
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Deal with content that loads after the page loads

  • Dark
    Light
  • PDF

Article Summary

Anychronous loading and XML (AJAX) is a technique that allows a web page to send and receive data without reloading the entire page. A common example is a search page that loads additional results as the user scrolls down.

If you don't account for asynchronous loading when building an agent, the agent might perform an action before all of the required content has time to load. This can lead to incomplete data or errors. The Agent Builder has a built-in feature to resolve this issue.

In the Agent Builder:

  1. Right-click the title page, for example, Page 2 in the Actions List.
  2. Select Properties.

How do I set a page actions to wait for AJAX_Image1(1)

  1. Select AFTER LOADING THIS PAGE
  2. Select Wait for AJAX to alter this page when it is done loading .

The agent waits for AJAX to update the page before performing any actions on this page.

How do I set a page actions to wait for AJAX_Image2(1)

  1. Select SAVE.

Was this article helpful?