Element From Text

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "$Element Offset is a Browser Function. This function converts a text representation of a selector into an actual selector. == Example == <pre> navigat...")
 
(Example)
Line 15: Line 15:
 
  The element from text function allows you to write your own selectors.
 
  The element from text function allows you to write your own selectors.
  
In this example, the element from text function uses the selector in the variable "#Selector" to select the field on the page and fill the field with the type text command.  
+
In this example, the element from text function uses the selector in the variable "#Selector" to select the field on the page and fill the field with the type text command.
 +
 
  
 
[[File:elementfromtext.png]]
 
[[File:elementfromtext.png]]

Revision as of 18:41, 14 April 2013

$Element Offset is a Browser Function.

This function converts a text representation of a selector into an actual selector.

Example


navigate("http://www.google.com/", "Wait")
wait(4)
set(#selector, "<name=q>", "Global")
type text($element from text(#selector), "Hello there!", "Standard")

The element from text function allows you to write your own selectors.

In this example, the element from text function uses the selector in the variable "#Selector" to select the field on the page and fill the field with the type text command.


File:Elementfromtext.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox