New Line
From UBot Studio
(Difference between revisions)
Line 6: | Line 6: | ||
== Example == | == Example == | ||
+ | |||
<pre> | <pre> | ||
navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") | navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") | ||
Line 11: | Line 12: | ||
type text(<about me textarea>, "My Item{$new line}My Second Item", "Standard") | type text(<about me textarea>, "My Item{$new line}My Second Item", "Standard") | ||
</pre> | </pre> | ||
+ | |||
Inserting the new line function between the two text items creates a new line for each item. Each item is separated by a new line. | Inserting the new line function between the two text items creates a new line for each item. Each item is separated by a new line. | ||
+ | |||
[[File:newline.png]] | [[File:newline.png]] |
Revision as of 19:48, 21 May 2013
$New Line is a Text Function.
The function returns a line break.
It is similar to pressing the enter key on your keyboard to create a new line.
Example
navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") wait(3) type text(<about me textarea>, "My Item{$new line}My Second Item", "Standard")
Inserting the new line function between the two text items creates a new line for each item. Each item is separated by a new line.