白皮书下载
Element screenshot (mobile phone)
Function description
Users can pick up elements and take screenshots on the mobile phone simulator through this component. After the screenshot is successful, the picture file is saved in the specified folder and the file saving path is saved in the variable.
Attribute description
-
Mobile phone connection object: the "mobile phone connection object" created by the "connect mobile phone" command.
-
Output to variable: assign the value of an element to a variable. The default variable name is elementsc. Users can modify and click FX to select existing variables.
-
Target: the user can select a captured element from the element library as the operation target; You can also specify the variable of the element previously obtained through "element pickup (mobile phone)" as the target.
-
Save path: the path to the folder where the screenshot is saved. The default file path rule refers to the rule in the "element screenshot" component in the foreground application.
-
File name: you can specify the file name or select the variable value in the existing process as the name of the screenshot. The default file naming rules refer to the rules in the "element screenshot" component in the foreground application.
Use example
-
Instructions: obtain the specified element (such as a tab) through element picking on the simulator. After setting the file name and file save path, run the component.
-
Output result: the screenshot of this tab will be saved to the specified path.




