- 入门指南
- 设置和配置
- 自动化项目
- 依赖项
- 工作流类型
- 控制流程
- 文件比较
- 自动化最佳实践
- 源代码控件集成
- 调试
- 日志记录
- 诊断工具
- 工作流分析器
- 变量
- 参数
- 导入的命名空间
- 编码自动化
- 基于触发器的 Attended 自动化
- 对象存储库
- ScreenScrapeJavaSupport 工具
- 扩展程序
- Studio 测试
- 故障排除
Studio 用户指南
本教程将告诉您如何在 10 分钟内在 Studio 中创建基本流程,并在您的计算机上运行。 该示例打开浏览器,加载特定网页,抓取信息,并将其写入“输出”面板和记事本文件中。
-
Launch Studio. In the HOME Backstage view, select Process to create a new project. The New Blank Process window is displayed.
-
在“新建空白流程”窗口中:
- 为新项目输入名称和描述,以概括您打算如何利用此自动化项目。
备注:
项目名称不能超过 128 个字符,描述不能超过 500 个字符。
- 选择“显示高级选项”,然后选择创建项目的位置。
- 选择“Windows”作为“兼容性”选项,并选择“VB”作为“语言”。
- 为新项目输入名称和描述,以概括您打算如何利用此自动化项目。
-
选择“创建”。系统随即会在 Studio 中打开新项目。
-
打开 Internet Explorer 并导航到 https://www.uipath.com/product/studio。您可以使用任何受支持的浏览器,但请确保已安装所需的 UiPath 扩展程序。
-
在“活动”面板中,搜索“使用应用程序/浏览器”,然后将其拖动到“设计器”面板。 请注意,活动会自动添加到序列中。
-
In Use Application/Browser, select Indicate application to automate, and then move the mouse pointer to the browser page you just opened. When the window is highlighted, select anywhere in the browser page. The Use Application/Browser activity is updated, the URL is added to the Browser URL field, and a screenshot of the window appears inside the activity.
-
From the Activities panel, add a Get Text activity to the Do container of the Use Application/Browser activity. Select Indicate in IE, and select on the text that you want to scrape from the previously loaded web page.
-
在“数据管理器”中,导航到“变量”面板,然后创建名为
GetText的新string变量。将其作用域设置为Sequence。此变量用于存储抓取的信息。 -
在“获取文本”活动中,向“保存位置”字段插入
GetText变量。 -
从“活动”面板中,拖动“写入行”活动。 在输入文本字段中,添加之前创建的变量。此活动将抓取的数据写入“输出”面板。
-
Add another Use Application/Browser activity to the project. Open a Notepad instance, select Indicate application to automate, and then move the mouse pointer to the Notepad window you just opened. When the window is highlighted, select anywhere inside it. The Use Application/Browser activity is updated, the path is added to the Application path field, and a screenshot of the window appears inside the activity.
-
Add a Type Into activity in the Use Application/Browser activity’s Do container. Select Indicate in App to select the Notepad window, and add the
GetTextvariable to the Type this field. This activity writes the scraped text to a Notepad window. -
In the ribbon, select Run File or use the Ctrl + F6 shortcut to execute the project.
结果
执行完成后,请注意,抓取的文本会写入“输出”面板和记事本文件中。
同样,您可以创建其他 Processes,以使用“表格提取”向导从网页中抓取数据。