Switching to Java scripting
You can switch to Java scripting to insert Java code to perform additional operations such as extending an API or functions that cannot be performed directly in the simplified script editor. To use both the simplified script and Java scripting, you must use the Insert Java Code Snippet or Insert Java Method feature that is available in the simplified script editor and switch to Java scripting. If you modify the Java script directly without using these features, the Java script changes are lost and the simplified script runs during playback.
Use the Insert Java Method feature to insert a method to logically group the lines of code. You can call the Java method from different locations in the script using the Java Code Snippet feature.
Use the Insert Java Code Snippet feature to insert a few lines of code.