Skip to content

Commit

Permalink
Bug fix for desc
Browse files Browse the repository at this point in the history
  • Loading branch information
naibo committed Aug 15, 2023
1 parent 593d01e commit 281d983
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ElectronJS/src/taskGrid/FlowChart.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ <h4 class="modal-title">Equivalent XPath</h4>
3. Manipulate the above-defined global variable: `self.myVar = self.myVar + 1`
4. Print the above-defined global variable: `print(self.myVar)`

If you want to record your custom variable as a field, please select the next option, "Evaluate Python expressions in the execution environment."
If you want to record your custom variable as a field, please select the next option, "Get value of a Python expression (the "eval" operation)"

If you want to import and use a third-party library that the program itself does not carry, you need to first use tools such as pip to install this library locally, and then add the path of the installed library before import, like:
(1) In the system command line execute the following command to install the library:
Expand All @@ -397,7 +397,7 @@ <h4 class="modal-title">Equivalent XPath</h4>
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` to return the text on the current page.
2. Return the value of a custom global variable: `self.myVar`
3. Return the result of a conditional statement: `self.myVar == 1`
Please note that this feature does not support assigning values to variables. In other words, you cannot write something like `self.myVar = 1`. If you want to perform assignment operations, please select the previous option, "Evaluate Python expressions in the execution environment."</pre>
Please note that this feature does not support assigning values to variables. In other words, you cannot write something like `self.myVar = 1`. If you want to perform assignment operations, please select the previous option, "Run Python code on current environment (the "exec" operation)"</pre>
<p style="margin-top: 15px">Whether to record the output/return value of the execution as a field: </p>
<p><select v-model='nowNode["parameters"]["recordASField"]' class="form-control">
<option value = 0>No</option>
Expand Down
2 changes: 1 addition & 1 deletion ElectronJS/src/taskGrid/FlowChart_CN.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ <h4 class="modal-title">等价XPath</h4>
1. 返回当前浏览器对象的相关值,用self.browser表示当前操作的浏览器,可直接用selenium的API进行操作,如self.browser.find_element(By.CSS_SELECTOR, "body").text即可返回当前页面的文字。
2. 返回自定义全局变量的值:self.myVar
3. 返回条件判断的值:self.myVar == 1
注意此功能不能对变量进行赋值操作,即不可以写self.myVar = 1这种,如果想要进行赋值操作,请选择上一个“在执行环境下获得Python表达式值(eval操作)”选项。</pre>
注意此功能不能对变量进行赋值操作,即不可以写self.myVar = 1这种,如果想要进行赋值操作,请选择上一个“在执行环境下运行Python代码(exec操作)”选项。</pre>
<p style="margin-top: 15px">是否将执行后的输出/返回值作为字段记录:</p>
<p><select v-model='nowNode["parameters"]["recordASField"]' class="form-control">
<option :value = 0>否(仍可在任意操作中用Field["操作名"]表示此命令返回值)</option>
Expand Down

0 comments on commit 281d983

Please sign in to comment.