From e74915d94c847d7d5dc60779a62f652c3e13c2a0 Mon Sep 17 00:00:00 2001 From: naibo Date: Wed, 21 Aug 2024 11:57:08 +0800 Subject: [PATCH] Typo Fix --- ElectronJS/src/taskGrid/FlowChart.html | 2 +- ElectronJS/src/taskGrid/FlowChart_CN.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ElectronJS/src/taskGrid/FlowChart.html b/ElectronJS/src/taskGrid/FlowChart.html index 6e6dd64..4465f3d 100644 --- a/ElectronJS/src/taskGrid/FlowChart.html +++ b/ElectronJS/src/taskGrid/FlowChart.html @@ -580,7 +580,7 @@ Please note that this feature does not support assigning values to variables. In Loop based on the expression value of Python code. Here are some examples: 1. Return relevant values of the current browser object. Use `self.browser` to refer to the current browser being operated. You can directly use Selenium's API to perform operations, such as `self.browser.find_element(By.CSS_SELECTOR, "body").text=="123"`, which checks whether the current page contains the text "123". 2. Return the value of a custom global variable: `self.myVar` -3. Return the result of a conditional statement: `self.myVar == 1` +3. Return the result of a conditional statement: `self.myVar > 1` 4. Determining whether the value extracted from a certain field is equal to the value of a certain variable: self.outputParameters["field name"] == self.myVar If the expression returns a value greater than 0 or evaluates to True, the loop continues; otherwise, it stops. diff --git a/ElectronJS/src/taskGrid/FlowChart_CN.html b/ElectronJS/src/taskGrid/FlowChart_CN.html index a546c66..795f8fa 100644 --- a/ElectronJS/src/taskGrid/FlowChart_CN.html +++ b/ElectronJS/src/taskGrid/FlowChart_CN.html @@ -579,8 +579,8 @@ print(emotlib.emoji()) # 使用其中的函数。
请先阅读此说明,再在上方输入框(不是本框)写具体代码,如果要执行大量代码,可以直接写outside:myCode.py,这样程序就会读取并执行EasySpider目录下的myCode.py中的代码。
 根据Python代码的表达式值来决定是否循环,示例:
 1. 返回当前浏览器对象的相关值,用self.browser表示当前操作的浏览器,可直接用selenium的API进行操作,如self.browser.find_element(By.CSS_SELECTOR, "body").text=="123",表示判断当前页面是否为123这个文本。
-2. 返回自定义全局变量的值:self.myVar,如果
-3. 返回条件判断的值:self.myVar == 1
+2. 返回自定义全局变量的值:self.myVar
+3. 返回条件判断的值:self.myVar > 1
 4. 判断某个字段提取的值是否等于某个变量的值:self.outputParameters["字段名"] == self.myVar
 以上表达式返回值大于0或为真则继续循环,否则停止循环。