活动
最新
False
横幅背景图像
用户界面自动化活动
上次更新日期 2024年4月26日

预览
Set Runtime Browser

UiPath.UIAutomationNext.Activities.NSetRuntimeBrowser

描述

Sets the currently active runtime browser.

This configuration remains in effect for both Modern and Classic activities until either the execution ends or another Set Runtime Browser activity is encountered within the same project.

无法在使用应用程序/浏览器活动内添加此活动。

To use this activity outside a Use Application/Browser activity, you need to provide an Input element.

项目兼容性

Windows - 旧版 | 窗口

Windows - 旧版 Windows 配置

设计器面板
  • Browser type - Choose the type of browser you want to be used at runtime. This property accepts only NBrowserType variables or arguments.
    • None - Enum value: NBrowserType.None. The Runtime browser project setting (Project Settings > UI Automation Modern > Application/Browser) is no longer overridden.
    • DefaultOSBrowser - Enum value: DefaultSystemBrowser.BrowserType. Uses the default browser set on the target machine.
    • Chrome - Enum value: NBrowserType.Chrome. Uses the Google Chrome browser.
    • Edge - Enum value: NBrowserType.Edge. Uses the Microsoft Edge browser.
    • Firefox - Enum value: NBrowserType.Firefox. Uses the Mozilla Firefox browser.
属性面板

常见

  • “出错时继续” - 指定在活动引发错误时是否应继续自动化操作。 此字段仅支持 Boolean 值(TrueFalse)。 默认值为 False。 因此,如果该字段为空且活动引发错误,系统将停止执行项目。 如果该值设置为 True,则无论出现何种错误,系统都将继续执行项目。
  • 延迟 时间” - 此活动完成与下一个活动开始执行任何操作之间的延迟时间(以秒为单位)。 默认值为 0.3 秒。 在活动之间添加延迟可确保一个活动有足够的时间完成,然后再开始下一个活动。

  • “在此之前延迟”- 上一个活动完成与此活动开始执行任何操作之间的延迟(以秒为单位)。默认值为 0.2 秒。在活动之间添加延迟可确保一个活动有足够的时间完成,然后再开始下一个活动。

  • 显示名称- 设计器面板中活动的显示名称指定目标时,系统会自动生成显示名称。

  • 超时”- 指定最长等待时间(以秒为单位),如果超出该时间后活动并未执行,系统便会抛出错误。 默认值为 30 秒。

输入

  • Browser type - Choose the type of browser you want to be used at runtime. This property accepts only NBrowserType variables or arguments.
    • None - Enum value: NBrowserType.None. The Runtime browser project setting (Project Settings > UI Automation Modern > Application/Browser) is no longer overridden.
    • DefaultOSBrowser - Enum value: DefaultSystemBrowser.BrowserType. Uses the default browser set on the target machine.
    • Chrome - Enum value: NBrowserType.Chrome. Uses the Google Chrome browser.
    • Edge - Enum value: NBrowserType.Edge. Uses the Microsoft Edge browser.
    • Firefox - Enum value: NBrowserType.Firefox. Uses the Mozilla Firefox browser.

其他

  • “私有” - 如果选中,则不再以“Verbose”级别记录变量和参数的值。 此字段仅支持 Boolean (TrueFalse) 值。 默认值为 False

Handling order

The order used for setting the browser type used at runtime is the following:
  1. Through the Set Runtime Browser activity.
  2. Through the Runtime browser project setting (Project Settings > UI Automation Modern > Application/Browser).
  3. Through the Use Application/Browser activity or other UI Automation activities.

Configure the browser type from Orchestrator

Orchestrator has built-in support for a limited number of base data types, such as string, integer, boolean, etc. For more details, you can check out the About input and output arguments page.
For data types that are not supported by default in Orchestrator, you must use a JSON representation of that value. For instance, in the case of enums, the JSON representation is either the integer value of the enum value or the string value.
To configure an NBrowserType argument in Orchestrator, you need to follow the steps below:
  1. Create an input argument in your Studio project, for example in_RuntimeBrowser.
  2. Set the Browser type property of the Set Runtime Browser activity with the value of the argument.
  3. 将项目发布到 Orchestrator。
  4. In Orchestrator, go to Automations > Processes > Add Process.
  5. Under Runtime Arguments, provide a value for the in_RuntimeBrowser argument. You need to specify the browser type in this format: "BrowserName". For example: "Edge". Quotes need to be included. The following browser options are supported:
    • "None"
    • "Chrome"
    • "Edge"
    • "Firefox"
  6. Save the value for the argument. After creating the process, the value determines the browser type used by the automation.

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.