Type text

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
 
(5 intermediate revisions by one user not shown)
Line 3: Line 3:
 
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.   
 
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)
+
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.  
 
'''Element to Type Into:''' Refers to the text field that is being selected for typing into.  
Line 13: Line 13:
 
Clicking the Advanced option on the command expands and reveals another option.
 
Clicking the Advanced option on the command expands and reveals another option.
  
'''Key Event:''' Allows the control of the behavior of keys typed to a selected field.
+
'''Key Event:''' Allows the control of the behavior of keys typed to a selected field.The key events are the following:
  
 
*Standard: types text
 
*Standard: types text
Line 30: Line 30:
  
  
<pre>type text(<username field>, "my username", "Standard")</pre>
+
<pre>navigate("https://www.google.com/", "Wait")
 +
wait(3)
 +
type text(<name="q">, "Apple Trees", "Standard")
 +
</pre>
  
  
[[File:Type Text.png]]
+
[[File:typetxt.jpg]]
  
  
  
Running the script will fill the selected field with the text "my username".
+
Running the script navigates the browser to the selected website, wait 3 seconds and then fill the selected field with the text "Apple Trees."

Latest revision as of 17:32, 15 September 2013


This command is part of the Browser Command. Type text is used when you need to type text into a browser text field.

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.

Clicking the Advanced option on the command expands and reveals another option.

Key Event: Allows the control of the behavior of keys typed to a selected field.The key events are the following:

  • Standard: types text
  • Key Down: holds down a key
  • Key Up: releases a key
  • Key Press: holds and releases a key
  • Flash Plugin: for typing special characters such as @ and capital letters into troublesome flash fields.


[edit] Example

navigate("https://www.google.com/", "Wait")
wait(3)
type text(<name="q">, "Apple Trees", "Standard")


Typetxt.jpg


Running the script navigates the browser to the selected website, wait 3 seconds and then fill the selected field with the text "Apple Trees."

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox