Replace
From UBot Studio
(Difference between revisions)
(Created page with "$replace is a Text Function. The function returns the original text with all instances of the search text replaced by the replace text. == Example == <pr...") |
Revision as of 18:15, 14 November 2012
$replace is a Text Function.
The function returns the original text with all instances of the search text replaced by the replace text.
Example
navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") wait(3) type text(<about me textarea>, $replace("I like UBot Studio", "like", "love"), "Standard")
The original text being altered is the sentence "I like UBot Studio." Running the script replaces the search text "like" with the replace text, which is "Love". The resulting sentence is "I love UBot Studio".