Element Child

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 16: Line 16:
 
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 set command returns the numbers /assets/red_logo.png from the page as the element child of the item "http://www.ubotstudio.com/index2".
 
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".
 +
  
 
[[File:elementchild.png]]
 
[[File:elementchild.png]]

Revision as of 19:17, 21 May 2013

$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.

The Element Selector is used to select an item.

Element: The desired page element.


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".


File:Elementchild.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox