Trim

From UBot Studio
Revision as of 21:31, 28 December 2016 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$Trim is a Text Function.

The function returns the original text with all leading or trailing blank spaces removed.

It can be used the same way you would use the other two functions, except it removes extra spaces in a list item.

Text: The text being trimmed. Accepts variables and functions such as $next list item, $list item, $random list item, $previous list item, and $table cell.

Example

navigate("http://www.ubotstudio.com/playground/simple-form", "Wait")
type text(<username field>, $trim("        UBot Studio"), "Standard")

Notice how much empty space is in front of the text "UBot Studio".

Running the script returns the text with the leading and trailing empty space removed from the text "UBot Studio".


Trm0.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox