Element Child
From UBot Studio
(Difference between revisions)
(→Example) |
|||
Line 2: | Line 2: | ||
This function returns the child of a selected element. | This function returns the child of a selected element. | ||
+ | |||
+ | $element child gets the child html element of the one matched with the selector. | ||
Line 9: | Line 11: | ||
navigate("http://ubotstudio.com/resources", "Wait") | navigate("http://ubotstudio.com/resources", "Wait") | ||
set(#logo, $scrape attribute($element child(<href="http://www.ubotstudio.com/index2">), "src"), "Global") | set(#logo, $scrape attribute($element child(<href="http://www.ubotstudio.com/index2">), "src"), "Global") | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | The | + | The set command returns the numbers /assets/red_logo.png from the page as the element child of the item "http://www.ubotstudio.com/index2". |
− | + |
Revision as of 23:16, 5 December 2012
$Element Child is a Browser Function.
This function returns the child of a selected element.
$element child gets the child html element of the one matched with the selector.
Example
navigate("http://ubotstudio.com/resources", "Wait") set(#logo, $scrape attribute($element child(<href="http://www.ubotstudio.com/index2">), "src"), "Global")
The set command returns the numbers /assets/red_logo.png from the page as the element child of the item "http://www.ubotstudio.com/index2".