1. 首页
  2. 文档
  3. Wait element

白皮书下载

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

Wait element

发刊日期:
2021/10/15

编辑团队:
实在学院

 

1、 Function description

Judge whether an element exists or disappears, and execute the subsequent process according to the results.

2、 Attribute description

Output to variable: the name of the variable that holds the result.

Target element: the specified interface element found during component execution, which is essentially an XML fragment. It is used to specify the interface element to be found and the attributes of some parent elements. Click the "Edit" button on the right side of the "target" input box to edit the target element, such as modifying the attribute value in the selector, customizing the element search path, etc.

Waiting type: divided into & ldquo; & rdquo; appears; Or & ldquo; Disappear & rdquo;, If appear is selected, the subsequent process will be executed after judging that an element appears; If disappear is selected, it means that a process is executed after judging that an element disappears.

● waiting timeout setting:Waiting timeout is the maximum waiting judgment time set, which means that if no element change is detected within the set time period, the process will report an error and will not wait continuously. It is not required. It defaults to 10000 milliseconds (10 seconds).

Element detection interval: set the interval for each element inspection. The default is 200 milliseconds (0.2 seconds). It is generally recommended to keep the default.

3、 Use example

Example: openIntelligence Indeed Technology Co.Ltd.On the official website, click to play the video introduction of Octopus digital employees. Considering the network problem, if you click to play the video before it appears, an error will be reported. A behavior of waiting until the play button appears is added here to ensure the normal operation of the process.

 

 

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