UiPath Documentation
studio
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Studio 用户指南

创建基本流程

本教程将告诉您如何在 10 分钟内在 Studio 中创建基本流程,并在您的计算机上运行。 该示例打开浏览器,加载特定网页,抓取信息,并将其写入“输出”面板和记事本文件中。

  1. Launch Studio. In the HOME Backstage view, select Process to create a new project. The New Blank Process window is displayed.

  2. 在“新建空白流程”窗口中:

    • 为新项目输入名称和描述,以概括您打算如何利用此自动化项目。
      备注:

      项目名称不能超过 128 个字符,描述不能超过 500 个字符。

    • 选择“显示高级选项”,然后选择创建项目的位置。
    • 选择“Windows”作为“兼容性”选项,并选择“VB”作为“语言”。
  3. 选择“创建”。系统随即会在 Studio 中打开新项目。

  4. 打开 Internet Explorer 并导航到 https://www.uipath.com/product/studio。您可以使用任何受支持的浏览器,但请确保已安装所需的 UiPath 扩展程序

  5. 在“活动”面板中,搜索“使用应用程序/浏览器”,然后将其拖动到“设计器”面板。 请注意,活动会自动添加到序列中。

  6. 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.

  7. 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.

  8. 在“数据管理器”中,导航到“变量”面板,然后创建名为 GetText 的新 string 变量。将其作用域设置为 Sequence。此变量用于存储抓取的信息。

  9. 在“获取文本”活动中,向“保存位置”字段插入 GetText 变量。

  10. “活动”面板中,拖动“写入行”活动。 在输入文本字段中,添加之前创建的变量。此活动将抓取的数据写入“输出”面板。

  11. 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.

  12. 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 GetText variable to the Type this field. This activity writes the scraped text to a Notepad window.

  13. In the ribbon, select Run File or use the Ctrl + F6 shortcut to execute the project.

结果

执行完成后,请注意,抓取的文本会写入“输出”面板和记事本文件中。

同样,您可以创建其他 Processes,以使用“表格提取”向导从网页中抓取数据。

  • 结果

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新