Actividades
Más reciente
False
Imagen de fondo del banner
Actividades UIAutomation
Última actualización 26 de abr. de 2024

Vista previa
Set Runtime Browser

UiPath.UIAutomationNext.Activities.NSetRuntimeBrowser

Descripción

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.

Esta actividad debe añadirse dentro de una actividad Usar aplicación/navegador.

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

Compatibilidad de proyectos

Windows: heredado | Ventanas

Windows (heredado), configuración de Windows

Panel del Diseñador
  • 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.
Panel de propiedades

Común

  • Continuar en caso de error : especifica si la automatización debe continuar incluso cuando la actividad arroja un error. Este campo solo admite valores Boolean (Verdadero, Falso). El valor predeterminado es Falso. Como resultado, si el campo está en blanco y se produce un error, se detiene la ejecución del proyecto. Si el valor se establece en Verdadero, la ejecución del proyecto continúa independientemente de cualquier error.
  • Retraso después de : retraso (en segundos) entre el momento en que se completa esta actividad y el momento en que la siguiente actividad inicia cualquier operación. El valor predeterminado es 0,3 segundos. Agregar un retraso entre actividades garantiza que una actividad tenga tiempo suficiente para completarse antes de que comience la siguiente.

  • Retraso antes de: retraso (en segundos) entre la hora a la que se termina la actividad anterior y la hora a la que esta actividad empieza a ejecutar operaciones. El valor predeterminado es 0,2 segundos. Añadir un retraso entre actividades garantiza que una actividad tiene tiempo suficiente para completarse antes de que comience la actividad siguiente.

  • Nombre paramostrar : el nombre que se muestra para la actividad en el panel Diseñador. Se genera automáticamente un nombre para mostrar cuando indica un destino.

  • Tiempo de espera: especifica la cantidad de tiempo (en segundos) que se debe esperar a que se ejecute la actividad antes de arrojar un error. El valor predeterminado es 30 segundos.

Entrada

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

Otros

  • Privado : si se selecciona, los valores de variables y argumentos ya no se registran en el nivel Detallado. Este campo solo admite valores Boolean (Verdadero, Falso). El valor predeterminado es Falso.

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. Publica tu proyecto en 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?

Obtén la ayuda que necesitas
RPA para el aprendizaje - Cursos de automatización
Foro de la comunidad UiPath
Logotipo blanco de UiPath
Confianza y seguridad
© 2005-2024 UiPath. All rights reserved.