アクティビティ
最新
バナーの背景画像
UI Automation のアクティビティ
最終更新日 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.

プロジェクトの対応 OS

Windows - レガシ | 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.

Was this page helpful?

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
UiPath ロゴ (白)
信頼とセキュリティ
© 2005-2024 UiPath. All rights reserved.