Scroll on a page
  • 14 May 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Scroll on a page

  • Dark
    Light
  • PDF

Article summary

Some websites won't load content on a page until the user has scrolled to the bottom.
An agent can scroll down to load more items, pause, capture additional items, and repeat until the full list is captured.

Scroll Element

Scroll Element or Scroll Item is a stand-alone action that loads all items before capture, or scrolls to a certain point on the page before performing an action.

In the Agent Builder:

  1. Enter a URL.
  2. Select Add Action.
  3. Select Scroll Item.

Scroll Item_Image4(1)

  1. Select YES, to have the scroll bar show items in the main page.
    Or,
    Select NO, to scroll on a window within the page.

Scroll Item_Image5(1)

  1. Place the scroll item on your current page. Most of the time, a Scroll Item action will go before a Begin Item List.

By default, theScroll Item action instructs your agent to scroll through an entire page before performing any other action.

To change the scroll pixels:

  1. Right-click on the Scroll Element capture.
  2. Select Properties.
  3. Adjust the scroll speed and other scroll features.
Note

Scroll Item added to your action list will say "300px". This indicates that the action will scroll 300 pixels at a time. This scroll length would work for most pages, but you can adjust the number of pixels to ensure that the content loads correctly.

scroll

Scrolling a page list

TheScrolling page list scrolls down until more results are added, captures the data and repeats this process for every scroll.
It is always attached to a Begin Item List.

This tutorial requires that you already have an Item List. Click here to learn how.

In the Agent Builder

  1. Select Begin item list.
  2. Select Add Page List from the toolbar.
  3. Select the The new List Pager will use a scroll bar box.

Scroll Item_Image2(1)

  1. Select YES, to have the scroll bar show items on the main page.
    Or,
    Select NO, to scroll on a window within the page.

  2. Set the scrolling Page List action to Wait for AJAX.

Scroll Item_Image3(1)

  1. Select Test Agent on top toolbar.
  2. Select Start.

Confirm that the data is captured correctly into a new column in the Captured Text Preview window.

Scrolling the page


Was this article helpful?