Code View
(→Handling Scripting Errors Within the Script) |
|||
Line 17: | Line 17: | ||
<pre>navigate("http://www.ubotstudio.com/playground/simple-form", "Wait")</pre> | <pre>navigate("http://www.ubotstudio.com/playground/simple-form", "Wait")</pre> | ||
+ | |||
+ | To switch back to Node View, simply click the Node View button at the top of the scripting window. | ||
+ | |||
+ | [[File:cdvw.jpg]] | ||
Revision as of 16:46, 15 July 2013
Code View is a feature found in the Professional and Developer editions of UBot Studio.
The feature allows you to type out your commands and functions instead of dragging and dropping.
This allows for faster scripting and easier editing of code withing your script.
To switch to code view, simply click the Code View Button on top of the scripting window.
Once clicked, each node in your scripting window changes to text versions of uscript.
For example, the navigate command node in Code View is written as the following:
navigate("http://www.ubotstudio.com/playground/simple-form", "Wait")
To switch back to Node View, simply click the Node View button at the top of the scripting window.
Handling Scripting Errors Within the Script
The Code View features comes ready to handle any typos in your script that might prevent the rest of your script from working appropriately.
For example, this script has a type in the type text command. Can you spot the error?
navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") type text(<username field>, "aspiedargie123", "Standard") type text(<password field>, "jonaex533%", "Standard") type text(<first name field>, "May", "Standard") type text(<last name field>, Darth", "Standard")
The issue is a subtle one. The value "Darth" for the last name field is missing a quotation mark.
The Code View window will spot and highlight the issue within the script. It will provide the line number where the issue is located.
Clicking the Node View button before the error is fixed will result in this message:
The error must be fixed before switching back to Node View.