Loop Elements of Webpage


Loops through elements on the webpage. The action can be used to extract contents of the webpage.

Parameters

  • Page name Specifies which page will be read. The webpage should be opened or connected before executing this action.

  • Loop through elemnts by path template Many elements on the webpage have same simliar element path. For example HTML.BODY.TABLE.TR(1).TD(1) and HTML.BODY.TABLE.TR(2).TD(1). The difference of the path between these elements is the index number. You can use the asterisk (*) as a place holder to replace the index number. For example, HTML. BODY.TABLE.TR(*).TD(*), this path string is called path template string. You can use the path template string in this action to list these elements.

  • Loop through elemnts by attributes Loops through elements which have same value of the attribute. For example, you can use this option to list all URL by the element type is hyperlink.

  • Loop through child elements (by attributes) Locates an element by the criterial of attribute, then loops through all its immediate childs.

  • Loop through child elements (by path) Locates an element by the element path, then loops through all its immediate childs.

  • Read what

    • Read inner text
    • Read inner HTML
    • Read attribute value
    • Read content user typed
    • Retrieve element's path in webpage

  • Loop times Specifies the options to control the loop times. The available options are:

    • Loop X times only
    • Loop from X to Y
    • Loop through all elements

  • Populate variable with content Specifies a variable to be populated with the contents of element

  • Populate variable with current index number Specifies a variable to be populated with the index number of current loop.

Notes

  • The webpage should be opened or connected before executing this action. Please refer to action "Open a Web page", "Connect an Open Webpage".
  • The path template can have a maximum number of three asterisks (*).
  • For more information about the variable, please refer to "Variable and Expression".