Table of contents
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...
Description
This action allows you to execute custom JavaScript code on site pages. Also, using this action, you can perform arithmetic operations with project variables:
...
Via context menu Add Action -> Custom Code -> JavaScript
...
Or use smart search.
...
What is it used for?
Arithmetic operations on variables
Interaction with page elements using JavaScript
...
You can test this code using the JavaScript Tester.
Note |
---|
When working in this mode, you do not need to specify the return keyword if you want to return some value. The result of this action will be the value calculated in the last line of the action. In the example below, the value “6” will get into the project variable {-Variable.result-}, the result of the expression 2 + 2 * 2. |
...
View file | ||
---|---|---|
|
...