【Flowchart Mode】How to use the "Judgment" component
Abstract：This tutorial introduces the function points and application scenarios of the "Judgment" component.
In the “What is a Flow component” tutorial, we introduced the functions and usage of various flow components in the ScrapeStorm Flowchart Mode. This article focuses on the “Judgment” component in the flow component.
The “Judgment” component is used to conditionally perform the behavior of the behavior component and cannot be used alone and needs to be used in conjunction with the behavior component.
The “Judgment” component added by the auxiliary click operation is complete and can be used directly by the user.
The “Judgment” component dragged from the component window below is not complete. The dragged component only contains the judgment condition subcomponent. We need to drag in other behavior components to form a complete “Judgment” component.
When the “Judgment” component is in use, if the judgment condition is satisfied, the above process is judged, and if the judgment condition is not satisfied, the flow below is executed.
The “Judgment” component has two application scenarios.
1. Contain text
Run the command above the component when this text appears on the page, otherwise run the command below the component.
2. Contain elements
Run the command above the component when this element appears on the page, otherwise run the command below the component.
The XPath of an element can be automatically generated by clicking the button to the right of the settings box, then clicking on the element in the page, or manually editing the XPath.
Click here for more information about xpath.