订阅

UiPath Studio

UiPath Studio 指南

用户界面

UiPath Studio 包含多个面板,便于您更轻松地访问特定功能。这些面板可以停靠,充当浮动窗口,也可以下拉列表中启用“自动隐藏”选项。

Overview

No.

Name

Description

1

Ribbon Tabs

Access the three main areas of Studio:
Home - Go to the Studio Backstage View where you can open and create projects, configure Studio, and more.
Design - Build automations using the tools available in the Command Palette, and Studio panels.
Debug - Use a comprehensive set of tools to debug your workflows. For more information, see About Debugging.

2

Title Bar

Open the Command Palette.
Send Feedback.
Access Help resources.
Sign in to your account.

3

Designer Panel

Build your automation by managing the activities added to the current workflow file.

4

Command Palette

Search within your project using the available search bars:
Add activity
Universal search
Go to File
Jump to activity

5

Variables Panel

Manage variables.

6

Arguments Panel

Manage arguments.

7

Imports Panel

Manage imported namespaces.

8

Project Panel

View the contents of your current project, manage files, folders, and dependencies, and adjust project settings.

9

Activities Panel

View all available activities and add activities to your automation.

10

Snippets Panel

Use pre-built workflows and add your own reusable automations.

11

Properties Panel

View and configure the properties of a selected activity.

12

Outline Panel

View the hierarchy of the current workflow and all available nodes.

13

Resources Panel

Add resources such as assets, queues, processes, and entities from Orchestrator.

14

Object Repository Panel

Create and reuse UI taxonomies inside and across projects.

15

Output Panel

View the output of the Log message and Write Line activities, status information regarding the execution of your project, errors generated by activities packages, and more.

16

Error List Panel

View all the errors generated when running the Workflow Analyzer.

17

Find References Panel

View all the places where an element is referenced in your project.

18

Breakpoints Panel

Manage breakpoints added to the project.

19

Status Bar

View status information and manage the Orchestrator connection and source control integration.

功能区

功能区选项卡

The ribbon is straightforward and can be minimized or expanded by clicking the Minimize / Expand button minimize_expandminimize_expand. It consists of the following three tabs:

  • Home - create and open projects, configure Studio, or access help and license information from the Studio Backstage View.
  • 设计 - 向项目中添加序列、流程图和状态机,安装和管理活动包,与用户界面元素构建交互,将工作流导出到 Excel,然后将您的工作发布到 OrcheStrator 或自定义订阅源。请记住,除非您安装 UiPath.UIAutomation.Activities 包,否则“功能区”中将不会显示“向导”和“用户界面探测器”。
  • Debug - debug your workflow, while using debugging tools to set breakpoints, monitor the execution of activities step by step, and adjust the debugging speed. Open logs to view details regarding execution and any changes made to the project. For more information on debugging, check the About Debugging page.

📘

Note:

不是在执行自动化项目期间创建的文件在发布到 Orchestrator 之后将变为只读文件。如果您的业务流程要求您在某个时候写入特定的文件,请确保在设计项目时创建该文件。

标题栏

发送反馈

There are two types of feedback that you can send directly from within Studio: Submit an idea for the product or Report a bug. Both are accessible from the ribbon by clicking the send_feedbacksend_feedback icon.

The Send Feedback feature must be used only for sending anonymous feedback to the product team. To contact our tech support team, please use the Contact Technical Support form.

提供以下信息,然后单击“提交”

  • 从“我希望”下拉菜单中,选择“提交产品建议”或“报告错误”
  • 从“对象”下拉菜单中,选择“UiPath 活动”、“UiPath Studio”、“UiPath 机器人”、“UiPath Orchestrator”或“UiPath 助理”
  • 从“这对您的重要性”下拉菜单中,选择“值得拥有”、“重要”或“关键”
  • 在“主题”字段中,添加简短的标题。
  • 添加详细说明并附加最多 6 个图片、视频或文本文件,每个文件均需小于 10MB。发送反馈的阈值为 5 分钟内发送 3 次。

Help

Click the Help icon to quickly access the resources that are also available in the Help tab in Backstage View, as illustrated below:

Backstage View

这是您首次打开 Studio 时看到的视图。您也可以通过单击窗口左上角的“主页”进入此视图。您可以在此处创建和打开项目、配置 Studio 或访问帮助和许可证信息。

此视图中提供以下按钮和选项卡:

  • Open - Browse to a local automation project and open it. By default, projects are created in C:\Users<current_user>\Documents\UiPath.
    :information-source: Note: Projects located on network folders where your user only has read permissions cannot be opened in Studio. We recommend using source control systems to collaborate on projects.
  • Close - Close the automation project that is currently open.
  • “开始”- 创建新的自动化项目或打开最近访问的项目。您可以从预定义的模板创建新项目,也可以打开您最近处理过的项目。可以从“打开最近的项目”列表中固定或删除项目,将鼠标悬停在项目上时会显示 project.json 文件的路径和项目说明。
  • Templates - Create a new project based on a template. In this tab, you can view all available project templates, search and filter them by source. For more information, see Project Templates.
  • Team - Manage source control integration for the automation project.
  • Tools - Install extensions for Chrome, Firefox, Edge, Java, Silverlight, Citrix, Windows Remote Desktop, VMware Horizon, launch the UI Explorer, Project Dependencies Mass Update Tool, and the Repair Tool for Microsoft Office. For more information about extensions, see About Extensions.
  • Settings - Change the look and feel of Studio, set global preferences, and manage activities package sources. For more information, see Configuring Studio Settings.
  • Help - Directs you to product documentation, release notes, online resources, the Community Forum and the RPA Academy.
    This is where you can also access a quick tutorial that helps you learn the basics of creating, publishing, and running an automation.
    :information-source: Note: To ensure the tutorial is completed successfully, we recommend that you pause the tutorial before making any changes to the workflow outside of those highlighted in the tutorial steps.
    Information regarding product version and installation, license availability, update channel and device ID is also found in the Help tab, together with a Copy Info button for quickly copying the details to the clipboard.

命令面板

使用 Ctrl + Shift + PF3 键盘快捷键,或单击搜索按钮,以打开“命令面板”。该面板中包含“添加活动”、“通用搜索”、“转到文件”和“跳转到活动”搜索栏。

📘

Note:

Studio 支持按照作用域划分活动的优先级。单击活动作用域内的 plus_iconplus_icon 图标,并要注意,“命令面板”提供了适合当前作用域的活动的相关建议。官方活动包中分阶段推出了对此功能的支持,可以定期查看发行说明

添加活动

使用 Ctrl + Shift + T 键盘快捷键即可打开“添加活动”搜索栏。您可以在已安装的包中搜索活动,并将其添加到文件中选定的活动之后。该搜索栏会向前五个结果自动分配键盘快捷方式,并记住之前的搜索结果。

Click the plus_iconplus_icon icon at the top or bottom of an activity from a sequence to open the Add activity search bar.

通用搜索

“通用搜索”栏使您可以查找当前项目中的代码片段、活动、变量、参数、导入、项目依赖项和文件。搜索从所有工作流文件(包括已关闭的文件)中返回结果。

Option

Shortcut

Description

Current File

Ctrl + 1

Lists results from the currently opened file that match the search query.

All Files

Ctrl + 2

Lists results found in all files part of the current project that match the search query.

Activities

Ctrl + 3

Lists results from activities that match the search query.

Variables

Ctrl + 4

Finds variables in the current project that match the search query.

Arguments

Ctrl + 5

Finds arguments defined in the project that match the search query.

Imports

Ctrl + 6

Finds imported namespaces in the project that match the search query.

Project Files

Ctrl + 7

Finds files part of the current project that match the search query.

Dependencies

Ctrl + 8

Lists results found in dependencies installed to the project.

Snippets

Ctrl + 9

Finds snippet files that match the search query.

若使用“通用搜索”或“添加活动”,系统会在您下一次打开搜索栏之前一直保留搜索结果。若使用“转到文件”和“跳转到活动”,则不会保留之前的搜索查询。

双击活动或按 Enter 键,将活动添加至当前打开的文件。通过使用相同命令,您可以打开“所有文件”或“项目文件”类别下的文件,或聚焦所需的搜索结果。

调用工作流活动内的流程参数默认值不可使用“通用搜索”功能进行搜索。

转到文件

“转到文件”栏用于搜索及打开当前项目文件夹中的文件。.xaml 文件将在 Studio 的“设计器”面板中打开,其他文件(例如屏幕截图或 Excel 文件)则由计算机上的对应默认应用程序打开。双击或按 Enter 键即可打开文件。

📘

Note:

“活动”、“项目”面板和“命令面板”支持模糊搜索。这表示,即使搜索词并不完全匹配,系统也会返回结果列表。搜索词可能仅缺失一小部分、出现拼写错误或仅包含每个词的首字母。例如,如果在“活动”栏键入 dci,系统将返回“双击图像”活动。

跳转到活动

“命令面板”中的“跳转到活动”搜索栏可帮助在大型工作流中查找及聚焦特定活动。它可通过以下方式访问:使用 Ctrl + J 键盘快捷键,或者使用 F3Ctrl + Shift + P 快捷键打开,然后选择“跳转到活动”

打开后,“跳转到活动”栏将显示“设计器”面板中目前聚焦的 .xaml 文件内的完整活动列表。

键入活动的显示名称或命名空间,例如“分配”。使用键盘箭头选择该活动,并按 Enter 键以在“设计器”面板中将它设为焦点。

在“跳转到活动”栏中,活动依以下顺序排列:容器、父活动和子活动。

面板

设计器面板

The Designer panel displays your current automation project, enables you to make changes to it, and provides quick access to variables, arguments and imports.

通过双击要查看的活动,可以在图表中导航。路径在“设计器”面板的标题中显示为面包屑导航。请注意,当使用缩放比例不同的多个显示器时,某些活动的输入字段部分中的文本可能会显示不当。

您可以使用“Ctrl + C”快捷键或上下文菜单将活动复制到文本编辑器,接收更改,然后将其复制回“设计器”面板。您可以使用 Studio 功能区中的按钮或按“Ctrl + Z”/“Ctrl + Y”来撤消/重做在面板中执行的操作。

If an activity has validation errors, an error icon errorerror is displayed on the right side of the activity title bar in the Designer panel and a warning icon warningwarning is displayed for all its parent activities. Clicking the icons opens the Properties panel for the activity affected by the issue and the error message is displayed at the top of the Properties panel.

单击 pan_modepan_mode 图标、按住空格键或按下鼠标中键,即可激活“全景模式”。使用缩放下拉菜单可更改缩放级别,单击 reset_zoomreset_zoom 图标可将之重置回 100%。

“适应屏幕”fit_screenfit_screen 图标可更改缩放,使整个工作流适应“设计器”面板。单击 overviewoverview 图标可获取整个项目的概述,并可通过调整焦点浏览各部分。

上下文菜单

上下文菜单用于在工作流上执行多个操作,无论是序列还是流程图。可以通过右击工作流中的某个活动来显示上下文菜单。

📘

注意

如果选择更多个活动,那么不会显示任何菜单。

上下文菜单的字段描述

Option

Description

View Parent

Displays the parent of the target activity in the Designer panel.
Note: This option is only displayed for child-activities, if they are opened in the Designer panel.

Open

Opens the selected activity in the Designer panel. Has the same result as double-click.

Collapse

Collapses the activity thus reducing the displayed details to "Double-click to view". You can achieve the same result by clicking the Collapse button CollapseCollapse.
Note: Only displayed for sequences.

Expand in Place

Expands the content of the activity, displaying its detailed content. You can achieve the same result by clicking the Expand button ExpandExpand.
Note: Only displayed for sequences.

Cut

Removes the selected activity and places it onto the Clipboard.

Copy

Copies the selected activity and places it onto the Clipboard. Activities from read-only files can be copied to another workflow or a .txt file. When copying multiple activities to clipboard, their order is reversed.

Paste

Inserts the content of the Clipboard at the current location.

Delete

Deletes the target activity.

Note: Since the Context menu is only displayed for a one-activity selection, you can use this command for more activities with the corresponding keyboard shortcut, Delete.

us

Add, edit, delete, show and hide annotations added to activities in the workflow.

Copy as Image

Makes a screenshot of the content displayed in the Designer panel.

Note: If you want to make a screenshot of a child activity, make sure to firstly open it in the Designer panel.

Save as Image

Makes a screenshot of the content displayed in the Designer panel and prompts the user to set the details for saving it (Name, Type, Destination). Supported formats: JPG, PNG, GIF, XPS.

Create Variable

Creates a variable in the Variable panel.

Auto Arrange

Automatically arranges activities in a flowchart.

Remove Surrounding Sequence

Removes the selected Sequence activity from the Designer panel. The activities that it contains are moved to the parent sequence.

Surround with Try Catch (Ctrl + T)

Inserts the activity in a Try Catch statement.

Note: A Try Catch statement is used for handling exceptions caused by data or coding errors. The Try clause encloses the activity to be checked for exceptions. The Catches clause is the exception handler. The Finally clause is used for executing an activity regardless of the status of the first two clauses.

Extract as Workflow

Creates a new workflow containing the targeted activity with the purpose of breaking down a large project into smaller ones. In the place of the extracted activity an Invoke <new> workflow activity is created which enables you to edit and import arguments from the newly created workflow. The arguments are created automatically from the variables used in that activity. The Invoke <new> workflow activity automatically maps the local variables to invoke arguments for the extracted workflow.

Open Workflow

Opens a workflow created using the above option.

Enable Activity

Enables a previously disabled activity.

Disable Activity

Disables an activity, which is then placed inside a Comment out activity.

Toggle Breakpoint

Marks the selected activity as a breakpoint for debugging. Breakpoints can also be toggled by clicking the Breakpoint button in the Execute tab. You can trigger a breakpoint for one activity at a time.

Edit Breakpoint Settings

Opens the Breakpoint Settings window.

Run to this Activity

Debugs the project and stops before this particular activity is executed.

Run from this Activity

Starts debugging from this activity.

Show All Conditions

Displays all conditions defined in your project (Properties panel > Conditions).

Note: This option is only displayed for flowcharts when you right-click an empty space inside the project; it is not displayed if you right-click an activity in your flowchart.

Hide All Conditions

Hides all displayed conditions.

Note: This option is only displayed for flowcharts when you right-click an empty space inside the project; it is not displayed if you right-click an activity in your flowchart.

Set as Start Node

Connects the selected activity with the Start node.
Note: Only displayed for flowcharts.

Set as Initial State

Connects the State Machine specific activity to with the Start node.
Note: Only displayed for state machines.

还会对“设计器”面板中的选项卡显示上下文菜单。可用的选项如下:

Option

Description

Close

Closes the active tab.

Close Others

Closes all tabs but the active one.

Close All Documents

Closes all tabs.

Float

Undocks the target tab and changes it to a floating state.

Pin Tab

Pins the target tab in the Designer panel.
Note: The tab pinned last is always moved in front of all other existing tabs (pinned or not). The position of a pinned tab can only be changed relative to other pinned tabs.

New Horizontal Tab Group

Splits the screen horizontally, enabling you to see two or more instances of the Designer panel within the same screen. The target project is moved onto the panel on the right.
Note: Only displayed when your project contains two or more tabs and, implicitly, workflows.

New Vertical Tab Group

Splits the screen vertically, enabling you to see two or more instances of the Designer panel within the same screen. The target project is moved onto the panel at the bottom.
Note: Only displayed when your project contains two or more tabs and, implicitly, workflows.

Move to Previous Tab Group

Moves the target tab onto the previous Designer panel displayed.
Note: Only displayed if you had used the New Vertical Tab Group or New Horizontal Tab Group options before.

Move to Next Tab Group

Moves the target tab onto the next Designer panel displayed.
Note: Only displayed if you had used the New Vertical Tab Group or New Horizontal Tab Group options before.

项目面板

The Project panel enables you to manage project files, dependencies, and configure project settings. For more information, see Managing Projects.

活动面板

The Activities panel shows available activities that can be added to the current workflow. You can search for activities by name and optionally by description using the search box at the top of the panel, navigate through them using navigation keys, and press Enter to add the selected activity to the currently opened file.

📘

Note:

无论 Studio 中设置了哪种界面语言,搜索框都可以按类名称来查找活动。

将鼠标悬停在面板中的活动上会显示该活动所属的包及其描述。要将活动添加到收藏夹列表,请右键单击它,然后选择“添加至收藏夹”

Right-click an activity in the panel and select Create Test Bench to test out one or more activities before adding them to a project. Read more about this here.

自定义活动面板

Click the View Options filter activitiesfilter activities button at the top of the panel to open a menu that allows you to customize the panel. See the following table for a list of available options.

Option

Description

Show Favorites

Show a section with favorite activities. This option is selected by default.

Show Recent

Show a section with the ten most recently used activities. This option is selected by default.

Show Available

Show all available activities. This option is selected by default.

Show Compatibility

Option currently not used. This option is not selected by default.

Show StudioX

Show activities designed for the StudioX profile. This option is not selected by default.

Show Classic / Modern

Show modern UI Automation activities in projects using the classic design experience or show classic UI Automation activities in projects using the modern experience. This option is not selected by default.

Show Categories

Group activities by the category they belong to. This option is selected by default.

Group by Packages

Group activities by the package they belong to. This option is not selected by default.

Search by Description

When searching in the panel, search in activity descriptions, not just in activity names. This option is not selected by default.

Pin Favorites

When searching in the panel, keep favorite activities always visible. Available if Show Favorites is selected. This option is not selected by default.

代码片段面板

“代码片段”面板使您可以轻松地重复使用自动化。默认情况下,它包括多个示例和代码片段。

You can add your own by clicking the Add Folder button and selecting a directory from your hard drive. Empty folders are not displayed.

要删除某个文件夹,请右击该文件夹并选择“删除”。

属性面板

“属性”面板包含上下文,用于查看和更改所选活动的属性。在同一工作流中选择两个活动时,可以从“属性”面板中修改公共属性。

表达式编辑器

当用于活动输入字段时,可以使用 Ctrl + Shift + E 键盘快捷方式打开表达式编辑器。您还可从“属性”面板、需要输入文本的字段和活动主体中打开表达式编辑器,直接在所需字段中添加文本即可。

Expressions can be written on multiples lines. Keyboard shortcuts for creating variables and arguments directly in expressions are available.

在编辑器中使用 Ctrl + F 打开搜索和替换功能。选择表达式的一部分,然后按 Ctrl + F3 将文本添加到搜索字段。按住 Ctrl 键使搜索窗格半透明,并查看其背后的文本。

大纲面板

“大纲”面板显示项目层次结构以及所有可用节点。您可以在“设计器”面板中选择活动来高亮显示该面板中的活动,也可在“大纲”面板中选择特定的活动来切换到该活动。

输出面板

“输出”面板使您能够显示“日志消息”或“写入行”活动的输出等内容。此面板中也会显示包的例外情况。

在“输出”面板中,通过单击面板标题中的按钮,可以显示或隐藏具有不同日志级别(错误、警告)的消息。双击消息会显示关于此消息的更多详细信息,并包含用于复制信息的选项。

在“输出”面板中搜索日志并在搜索结果列表中选择项目时,相应日志将会高亮显示。

“导出日志”按钮用于将日志导出至 .txt 文件。该按钮还会导出时间戳和错误消息详情。此外还可导出筛选后的日志。例如,若想仅导出 Trace 级日志,您可筛选列表,然后使用“导出日志”按钮。

调试时,“输出”面板将显示日志,表示活动开始执行时间,直至结束的时间。您可通过“调试”选项卡中的“日志活动”选项启用此功能。

The Error List panel displays errors found in the file or project during the validation process, together with errors generated by Workflow Analyzer rules.

“全部清除”按钮会擦除“输出”面板中显示的所有信息。在运行工作流时,将擦除此面板中存储的日志和其他数据。“输出”面板一次最多显示 2,000 行。

“查找引用”面板

“查找引用”面板显示您在项目中搜索的引用的结果。要查找项目中引用元素的每个位置,请右键单击该元素,然后选择“查找引用”。这适用于以下情况:

  • “项目”面板中的文件
  • “活动”面板中的活动
  • “变量”面板中的变量
  • “参数”面板中的参数
  • “对象存储库”面板中的描述符

资源面板

The Resources panel in Studio can load assets, queues, processes, and entities, provided that the Robot is connected to Orchestrator. Read the Connecting Robots to Orchestrator page to find the steps.

如果连接到 Orchestrator 的机器人是“标准”类型,则“资源”面板仅能显示已配置此机器人的传统文件夹。

If the Robot is of type Floating, the panel can display resources from all classic and modern folders that this Robot has access to. Find out more about robots and folders in the Orchestrator Guide.

📘

Notes:

  • 使用手动配置的传统机器人时,您必须向其授予 View 权限,这样才能让相应资源(即资产、队列和流程)显示在面板中。详细了解如何在 Orchestrator 中设置角色和权限
  • 如果 Orchestrator 中既有传统文件夹又有新式文件夹,并且您已使用新式文件夹中的机器人连接到 Orchestrator(您已登录帐户或使用计算机模板密钥进行了连接),则传统文件夹中的进程在“资源”面板中不可用。如要从传统文件夹访问进程,请使用通过标准计算机密钥连接的传统机器人连接到 Orchestrator。

选择一个 Orchestrator 文件夹

The folder from which resources are currently loaded in the panel is displayed in the Studio status bar. You can switch to a different folder that you have access to by clicking the current folder name, and then selecting another Orchestrator folder from the menu that appears. In addition to the resources that are available in Studio, the folder selection also determines the default targets available when publishing your processes.

要将资源加载到面板中,请单击面板顶部的“刷新”按钮。将鼠标悬停在状态栏中的文件夹名称上方,即可看到 Orchestrator URL。

📘

Note:

只有在“Orchestrator 资源”面板中选取了相应子文件夹时,Orchestrator 中才会显示该子文件夹中流程生成的日志。

在项目中使用 Orchestrator 资源

将资源、队列或流程从“资源”面板直接拖放到自动化项目中。这样做后,会在“添加活动”搜索栏中建议合适的活动。例如,在项目中拖动队列后,从“添加活动”搜索栏中选择“添加队列项目”活动,然后就能看到到该队列已自动分配给活动的“队列名称”属性。

您也可以右键单击“资源”面板中的任何项目,然后选择“复制”以复制其名称,并将其用于与此类资源进行交互的活动中。

调试面板

The following panels are available to help you debug your projects: Breakpoints, Call Stack, Locals, Watch, and Immediate.

状态栏

在状态栏中,您可以查看与 Orchestrator 和源代码控件管理相关的状态信息和访问选项。您还可以在此查看项目中的表达式(VB 或 C#)使用的语言。

  • Orchestrator/Cloud Connection - Click cloud optionscloud options to access Orchestrator options: sign in to your cloud account, disconnect from Orchestrator (if connected with a machine key), and refresh resources.
  • Orchestrator 状态 - 显示 Orchestrator 连接状态。连接到 Orchestrator 后,系统将显示当前选择的文件夹。您可以单击当前文件夹名称以查看可用文件夹列表,并选择要从中同步资源的其他文件夹。
  • Source Control - Depending on whether the project is connected to a source control repository, different options are available to help you manage source control integration. For more information, see About Version Control.

7 天前更新


用户界面


建议的编辑仅限用于 API 参考页面

You can only suggest edits to Markdown body content, but not to the API spec.