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

创建基本流程

This tutorial teaches you how to create a basic process in Studio in 10 minutes and run it on your machine. The example opens a browser, loads a certain web page, scrapes information, and writes it to the Output panel, and in a Notepad file.

查看视频或按照下列详细步骤操作:

  1. 启动 Studio。系统将显示“新建空白流程”窗口。在“主页”的后台视图中,单击“流程”以新建项目。系统将显示“新的空白流程”窗口。

  2. 为新项目键入名称并提供相关说明,以概括您打算如何利用此自动化项目。为新项目选取位置。

    备注:

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

  3. 单击“创建”。系统随即会在 Studio 中打开新项目。

  4. In the Activities panel, search for Open Browser and drag it to the Designer panel. Notice that the activity is automatically added inside a Sequence.

  5. 开放浏览器输入字段中添加 "https://www.uipath.com/product/studio" URL。使用 Ctrl + S,或单击功能区的“保存”按钮,然后按 Ctrl + F6 运行流程。系统将在 Internet Explorer 中打开上述网页。

  6. From the Activities panel, add a Get Visible Text activity to the Do container of the Open Browser activity. Click Indicate element inside browser, and click on the text that you want to scrape from the previously loaded web page.

  7. In the Variables panel, create a new string variable called GetText, and set its scope to Sequence. The purpose of this variable is to store the scraped information.

  8. 在“获取可见文本”活动的“属性”面板中,选择“文本”属性旁边的字段,然后插入 GetText 变量。

  9. From the Activities panel, drag a Write stepne activity. In the input text field, add the previously created variable. This activity writes the scraped data to the Output panel.

  10. Add an Open Appstepcation activity to the project. Open a Notepad instance, click Indicate window on screen and select the opened appstepcation. Notepad’s file path is detected.

  11. Add a Type Into activity in the Open Appstepcation activity’s Do container. Click Indicate element inside window to select the Notepad window, and add the GetText variable to the input text field. This activity writes the scraped text to a Notepad window.

  12. 在功能区中,单击“运行文件”或使用 Ctrl + F6 快捷键执行项目。

When the execution is completed, notice that the scraped text is written to the Output panel, and in the Notepad file.

同样,您也可使用向导创建其他流程,以抓取网页中的数据。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新