Insert Text
From UBot Studio
(Difference between revisions)
(Created page with "$Insert Text is a Text Function. The function returns the original text with another piece of text inserted at a specified position. '''Original Text:''' ...") |
(→Example) |
||
(3 intermediate revisions by one user not shown) | |||
Line 3: | Line 3: | ||
The function returns the original text with another piece of text inserted at a specified position. | The function returns the original text with another piece of text inserted at a specified position. | ||
− | '''Original Text:''' The original string that will be altered. | + | '''Original Text:''' The original string that will be altered. Accepts variables and functions such as [[$next list item]], [[$list item]], [[$random list item]], [[$previous list item]], and [[$table cell]] under Text to Type. |
− | '''Text to Insert:''' Where the item you are trying to insert will go. | + | |
+ | '''Text to Insert:''' Where the item you are trying to insert will go. Accepts variables and functions such as [[$next list item]], [[$list item]], [[$random list item]], [[$previous list item]], and [[$table cell]] under Text to Type. | ||
+ | |||
'''Position:''' Where exactly you want the item inserted. | '''Position:''' Where exactly you want the item inserted. | ||
Line 13: | Line 15: | ||
type text(<username field>, $insert text("Andrew Williams", "James ", 7), "Standard") | type text(<username field>, $insert text("Andrew Williams", "James ", 7), "Standard") | ||
</pre> | </pre> | ||
+ | |||
Running the script inserts the Text to Insert into position 7 of the Original Text "Andrew Williams" | Running the script inserts the Text to Insert into position 7 of the Original Text "Andrew Williams" | ||
− | [[File: | + | |
+ | [[File:insrttxt0.jpg]] |
Latest revision as of 22:11, 28 December 2016
$Insert Text is a Text Function.
The function returns the original text with another piece of text inserted at a specified position.
Original Text: The original string that will be altered. Accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell under Text to Type.
Text to Insert: Where the item you are trying to insert will go. Accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell under Text to Type.
Position: Where exactly you want the item inserted.
[edit] Example
navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") type text(<username field>, $insert text("Andrew Williams", "James ", 7), "Standard")
Running the script inserts the Text to Insert into position 7 of the Original Text "Andrew Williams"