Loop Action

Creates a loop in your task so that you can repeat a series of steps on similar elements in the page. The loop action has the settings below. While changing these settings you will notice that WebGet will highlight (and number) all selected items in blue. This will help identify the elements that will be looped over.
  • Container Item: The area on the web page that contains the elements that you want to loop over. If you want to narrow down the number of elements to loop over you can make the Container Item smaller by clicking the Next button > or selecting an item from the list.
  • Target Item: The type of elements that you want to loop over. You may need to click the Next button > to broaden your selection.
  • Loop Selector: Narrow or broaden the items selected based on Css classes. Click on items in the list to see how this changes the selection. Advanced users can specify their own Css selector by typing it into the box below the list. For more information on Css selectors see this reference guide.
  • Maximum Items: Reduce the number of items that get included in the loop, or leave this field blank to loop over all the items selected.
  • Name: The name of the items you are looping over. Use a singular name (not plural) because this name will appear in expressions like "Looping over Product items"
  • On Error: What would you like to do if an error occurs during this action? Stop will halt the run. Warn will display a warning message in the run log and continue. Ignore will disregard the error and continue.

After creating a loop (and while you are inside that loop), you can only perform actions on elements selected by the loop. For this reason WebGet will highlight the available element in the target page and grey out the rest. When you are finished performing steps inside the loop, click the End Loop button.