With Every Table Cell

From UBot Studio
Jump to: navigation, search

This command is an Advanced Table command. This command loops through every cell in a table.

Table: Table with content being used in the script.

Variable: Variable each table cell will be set to. The variable is then inserted into other commands inside the With Every Table Cell command.

Example


navigate("http://www.w3schools.com/html/html_tables.asp","Wait")
wait(8)
scrape table(<innertext="First Name">,&my table)
with every table cell(&my table,#mytablecells) {
    navigate("http://www.ubotstudio.com/playground/simple-form","Wait")
    type text(<username field>,#mytablecells,"Standard")
}


Running the command will scrape a table, navigate to the specified url, and fill the specified field with the first table cell item. The script within the With Every Table Cell command will repeat for each table cell item on the table , and stop once it reaches the end of the table.


Witheverytablecell.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox