TurnPages

Repeatedly navigates through the element selected by the given nextButton selector, and selects each of the resulting pages, including the first one. Actions below this action will run inside each of the selected pages. Unlike Browser.TurnPages, this action takes an additional action that returns the browser to the page that contains the link to the next page, and won't attempt to automatically return to this page if any action below navigates away from this page.

Syntax

State.TurnPages
   ·  [nextButton]
   ·  [goBack]

Parameters

nextButton
The selector that selects the next page link or button.
goBack
The action that returns the browser to the page that contains the link to the next page after other actions have been performed on the browser. If no action needs to be performed because the link to the next page still exists, Sequence.Default can be passed.

Remarks

Use this action if Helium Scraper is going back to page 1 and then turning the pages all the way to the current page, for each visited page. This will occur if the next button is a javascript link and actions are performed on the browser after each page is loaded.