1. 首页
  2. 文档
  3. Execute JS

白皮书下载

实在智能Agent产品白皮书(7.2.0).pdf

Execute JS

发刊日期:
2021/10/15

编辑团队:
实在学院

1、 Video example

  

2、 Function description

Execute customized JS code on the browser interface of the selected element.

3、 Attribute description

  执行JS属性

● Output to variable:If the code has a return value, this variable is used to store the return value; If the code has no return value, the variable is a null value of string type.

● Objectives:Select the target element and pick it directly on the interface. When picking, press the right key or ESC key to exit the picking mode. Click the function button to select from the variable library. You need to save the element object to the variable in advance. Click the overwrite button on the right to modify the specific configuration or pick again.

● JS code:User defined JS code.

● Input parameters:In array form, one or more variables can be imported into the code in the form of input parameters and can be invoked in JS code.

4、 Use example

执行JS示例

● execution logic of this process:

In this example, execute the code to pop up a message box containing the specified text on baidu home page.   

● output results

The message box pops up successfully.

  执行JS结果

企业培训
技术支持
加入社群
公众号
实在智能Agent学习群
扫码关注微信公众号