-
Major Update: Added the ability to run Python code, manipulate custom variables, and retrieve variable values directly in the current environment for custom actions. Loops and conditional statements also support recognition of custom variables and expressions:
This option provides advanced functionality to manipulate the browser running in real-time using Python code. You can customize variables within the entire execution environment and perform operations such as modification and assignment. Examples:
- Use
self.browser to refer to the current browser being operated on, and perform actions using Selenium APIs. For instance, self.browser.find_element(By.CSS_SELECTOR, "body").send_keys(Keys.END) can scroll to the bottom of the page.
- Define a global variable:
self.myVar = 1
- Manipulate the above-defined global variable:
self.myVar = self.myVar + 1
- Print the above-defined global variable:
print(self.myVar)
If you want to record your custom variables as field values, choose the next option: Retrieve Python Expression Value in Execution Environment (eval operation).
This option allows you to directly return the expression value of Python code and represent the return value of this operation using Field["operation name"] in other places. Examples:
- Return relevant values of the current browser object using
self.browser, which refers to the current browser being operated on. You can directly use Selenium APIs, e.g., self.browser.find_element(By.CSS_SELECTOR, "body").text to retrieve the text on the current page.
- Return the value of a custom global variable:
self.myVar
- Return the value of a conditional statement:
self.myVar == 1, the evaluation of this expression can be used for conditional statements and loops!!!
Note that this functionality does not support variable assignment, meaning you cannot write something like self.myVar = 1. If you want to perform an assignment, choose the previous option: Run Python code on current environment (the "exec" operation).
-
Within a loop, multiple input fields can now be associated with text from a looped list by matching corresponding index values:
-
During execution, you can set Excel files for specific reads, specifying Excel paths. For multiple fields within a looped text list, you can read multiple columns with the same name from Excel and automatically merge them:
-
Relative element clicks and move-to-element events within a loop can be set using relative XPath. However, this feature is not compatible with task files from previous versions. Previous version files need manual modification, where XPaths used for element clicks within the loop must be set to empty in order to work. It's recommended to directly use the new version's task design.
-
UI Major Update: Operations can be added, flow can be modified, and anchor points can be adjusted through drag-and-drop actions. Adding operations, cutting elements, and adjusting anchor points can all be achieved through dragging and dropping. Right-click to delete elements. Double-click arrows to directly adjust anchor points.
-
Added a close button in the bottom right corner of the browser console to handle scenarios where the console obstructs captcha or login prompts.
-
Option to clear other non-operation-defined field values before recording a field.
-
Added the feature to skip the current loop, i.e., Continue functionality.
-
All XPaths can be replaced with variable values using Field["field value"].
-
For data extraction operations, added the ability to resume execution from the last saved position when re-executing a task (set during task save), to address the issue of starting from the beginning after unexpected program termination.
-
Replaced OCR functionality with ddddocr, eliminating the need for manual environment installation and improving OCR recognition accuracy.
-
Fixed a bug where an extra row of data wasn't saved during data extraction.
-
Set a waiting condition for an element to appear before executing an operation.
-
Can extract attribute values of elements.
-
Added copyright and usage agreement statements.
-
Full version supports the function to "Scroll down continuously until the page content remains unchanged." The exit conditions for looped operations of clicking the next page have been updated to "Next page button not found" and "Page content change not detected."
-
Optimized log formatting.
-
Added the ability to save files in JSON format.
-
Updated Chrome version to 115.