Type text
From UBot Studio
(Difference between revisions)
(→Example) |
|||
Line 1: | Line 1: | ||
− | This command is part of the [[Browser Commands|Browser Command]]. Type text is used when you need to type text into a browser text field. You simply drag this command into the scripting area and choose an element using one of the selector tools. (See [[The Selectors]] for more information) | + | This command is part of the [[Browser Commands|Browser Command]]. Type text is used when you need to type text into a browser text field. |
+ | |||
+ | You simply drag this command into the scripting area and choose an element using one of the selector tools. (See [[The Selectors]] for more information) | ||
+ | |||
+ | '''Element to Type Into:''' Refers to the text field that is being selected for typing into. | ||
+ | |||
+ | '''Text to Type:''' The text you would like to type into the selected field. | ||
+ | |||
+ | The command also accepts variables and functions such as [[$next list item]], [[$list item]], [[$random list item]], [[$previous list item]], and [[$table cell]] under Text to Type. | ||
+ | |||
== Example == | == Example == | ||
+ | |||
<pre>type text(<username field>, "my username", "Standard")</pre> | <pre>type text(<username field>, "my username", "Standard")</pre> |
Revision as of 17:57, 23 April 2013
This command is part of the Browser Command. Type text is used when you need to type text into a browser text field.
You simply drag this command into the scripting area and choose an element using one of the selector tools. (See The Selectors for more information)
Element to Type Into: Refers to the text field that is being selected for typing into.
Text to Type: The text you would like to type into the selected field.
The command also accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell under Text to Type.
Example
type text(<username field>, "my username", "Standard")
Running the script will fill the selected field with the text "my username".