Content Script editor
Content Script objects can be edited with the dedicated web-based IDE selecting the 'Editor' function in the object function menu. The function is also available as a promoted function.
The web-based IDE (Integrated Development Environment) for Content Script appears as follows:
Shortcuts¶
The following keyboard shortcuts are available while using the editor:
Shortcut | Description |
---|---|
Ctrl + S | Save the current script (add a new version) |
Ctrl + H | Toggle the online Help window |
Ctrl + F | Open the ‘Search’ tools panel |
Ctrl + Shift + F | Open the ‘Search and Replace’ tools panel |
Ctrl + Space | Show the code autocompletion hints |
Ctrl + J | Trigger the execution in the test frame |
Ctrl + P | Inject the full path of the selected node in the Content Script editor |
Top Bar controls (DEVELOPER)¶
Command | Description |
---|---|
Versions | |
Save the script (adds a new version) | |
Save the content script properties (i.e. the icon) as well as the static variables (does not add a new version) | |
Open the object’s Versions tab | |
Close the Content Script Editor | |
Edit | |
Erases the last change done | |
Opposite of Undo | |
Change the script’s associated icon | |
Display the last 200 lines of the ModuleSuite’smaster log file | |
Disable the script's real-time validation | |
Execution | |
Run the script in the current window (CTRL + J) | |
Save the script and run it, showing the result in the editor’s bottom panel | |
Comparison | |
Toggle comparison: toggles the comparison of the current version of the script with the selected. | |
Editor | |
Theme:Changes the theme applied to all the RPA embedded editors | |
Help | |
Access the module’s online guide and the support portal | |
Validation | |
Red label: The script failed the validation and most likely will fail to compile | |
Green label: The script is well-formed |
Top Bar controls (ADMINISTRATOR)¶
Command | Description |
---|---|
Versions | |
Save the content script properties (i.e. the icon) as well as the static variables (does not add a new version) | |
Scheduling | |
Toggle script scheduling | |
Toggle script advance scheduling mode | |
Toggle re-scheduling abortion on script’s execution error | |
Impersonation | |
Select the user that will be always used to run the script | |
Clear impersonation setting | |
Manage Log | |
Trigger ModuleSuite’s master log rotation | |
Trigger ModuleSuite’s master log download |
Auto-completion¶
The Content Script Editor features a code completion assistant functionality. While typing use the ctrl + space key combination to retrieve the suggested values.
In some cases the Content Script’s inference engine might not be capable of determining the actual type of the expression you are trying to auto-complete. In these cases the auto-complete feature will prompt you to firstly specify the type against which the auto-completion should be performed and then will switch to the standard behaviour.
If the actual type (class) of your expression is not listed among the results you can still specify the fully qualified class name to autocomplete against that class: e.g. (java.lang.String)
List of the most common API objects returned by Content Script APIs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|