Element Parent

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "$Element Parent is a Browser Function. This function returns the parent of a selected element. == Example == <pre> navigate("http://www.w3schools.com...")
 
Line 2: Line 2:
  
 
This function returns the parent of a selected element.
 
This function returns the parent of a selected element.
 +
 +
The [[The Selectors|Element Selector]] is used to select an item.
 +
 +
 +
'''Element:''' The desired page element.
  
  

Revision as of 18:49, 1 May 2013

$Element Parent is a Browser Function.

This function returns the parent of a selected element.

The Element Selector is used to select an item.


Element: The desired page element.


Example


navigate("http://www.w3schools.com/html/html_tables.asp", "Wait")
set(#parent, $scrape attribute($element parent(<innertext="Apples">), "innertext"), "Global")

Running the script above will return the parent of the item "44%" from the table.

The parent of the item is two column row "Apples 44%".

The element parent function returns the entire row to the variable.

File:Elementparent.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox