Aktivitäten
Neuestes
False
Bannerhintergrundbild
UIAutomation-Aktivitäten
Letzte Aktualisierung 26. Apr. 2024

Vorschau
Set Runtime Browser

UiPath.UIAutomationNext.Activities.NSetRuntimeBrowser

Beschreibung

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.

Diese Aktivität muss innerhalb einer Use Application/Browser-Aktivität hinzugefügt werden.

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

Projektkompatibilität

Windows – Legacy | Windows

Windows – Legacy, Windows-Konfiguration

Designer-Panel
  • 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.
Eigenschaften-Panel

Allgemein

  • BeiFehler fortfahren – Gibt an, ob die Automatisierung auch dann fortgesetzt werden soll, wenn die Aktivität einen Fehler ausgibt. Dieses Feld unterstützt nur Boolean -Werte (True, False). Der Standardwert ist False. Wenn das Feld leer ist und ein Fehler ausgegeben wird, wird die Ausführung des Projekts angehalten. Wenn der Wert auf Truefestgelegt ist, wird die Ausführung des Projekts unabhängig von einem Fehler fortgesetzt.
  • Verzögerung nach – Verzögerung (in Sekunden) zwischen dem Zeitpunkt, an dem diese Aktivität abgeschlossen ist, und dem Zeitpunkt, zu dem die nächste Aktivität Vorgänge beginnt. Der Standardwert ist 0,3 Sekunden. Durch Hinzufügen einer Verzögerung zwischen Aktivitäten wird sichergestellt, dass eine Aktivität genügend Zeit hat, um abgeschlossen zu werden, bevor die nächste Aktivität beginnt.

  • Verzögerung vor – Verzögerung (in Sekunden) zwischen dem Zeitpunkt, zu dem die vorherige Aktivität abgeschlossen ist, und dem Zeitpunkt, zu dem diese Aktivität mit der Ausführung von Vorgängen beginnt. Der Standardwert beträgt 0,2 Sekunden. Durch Hinzufügen einer Verzögerung zwischen Aktivitäten wird sichergestellt, dass eine Aktivität genügend Zeit hat, um abgeschlossen zu werden, bevor die nächste Aktivität beginnt.

  • Anzeigename – Der Name, der für die Aktivität im Designerbereich angezeigt wird. Ein Anzeigename wird automatisch generiert, wenn Sie ein Ziel angeben.

  • Zeitüberschreitung – Geben Sie die Zeitspanne (in Sekunden) an, die auf die Ausführung der Aktivität gewartet werden soll, bevor ein Fehler ausgegeben wird. Der Standardwert beträgt 30 Sekunden.

Eingabe

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

Sonstiges

  • Privat (Private) - Bei Auswahl werden die Werte von Variablen und Argumenten nicht mehr auf ausführlicher Ebene protokolliert. Dieses Feld unterstützt nur Boolean -Werte (True, False). Der Standardwert ist 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. Veröffentlichen Sie Ihr Projekt im 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.

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
UiPath Logo weiß
Vertrauen und Sicherheit
© 2005-2024 UiPath. All rights reserved.