- Información general
- Automatización de IU
- Acerca del paquete de actividades de automatización de IU
- Aplicaciones y tecnologías automatizadas con UI Automation
- Compatibilidad de proyectos
- UI-ANA-016: Introducir URL para abrir el navegador
- UI-ANA-017: ContinueOnError verdadero
- UI-ANA-018: enumerar actividades de OCR / imagen
- UI-DBP-006: uso del contenedor
- UI-DBP-013: uso incorrecto de la automatización de Excel
- UI-DBP-030: uso de variables prohibidas en selectores
- UI-DBP-031: verificación de actividad
- UI-PRR-001: Simular clic
- UI-PRR-002: Simular tipo
- UI-PRR-003: uso incorrecto de aplicación abierta
- UI-PRR-004: retrasos codificados
- UI-REL-001: Idx grande en selectores
- UI-SEC-004: datos de correo electrónico del selector
- UI-SEC-010: Restricciones de aplicaciones / URL
- UI-USG-011: atributos no permitidos
- UX-SEC-010: restricciones de aplicaciones / URL
- UX-DBP-029: uso no seguro de contraseña
- UI-PST-001: nivel de registro de auditoría en la configuración del proyecto
- Herramienta de migración del navegador de UiPath
- Recorte de región
- Grabadora de Computer Vision
- Acerca de la automatización de imágenes y texto
- Actividades con el ratón y el teclado
- Ejemplo de uso de la automatización de ratón y teclado
- Actividades de texto
- Ejemplo de uso de la automatización de texto
- Actividades de OCR
- Actividades de imagen
- Ejemplo de uso de la automatización de OCR y la automatización de imágenes
- Índice de actividades
- Activar
- Base de anclaje
- Asociar navegador
- Asociar ventana
- Bloquear entrada de usuario
- Aviso
- Comprobar
- Clic
- Clic en imagen
- Desencadenador de clic de imagen
- Clic en texto OCR
- Clic en el texto
- Desencadenador de clic
- Cerrar aplicación
- Cerrar pestaña
- Cerrar ventana
- Anclaje consciente de contexto
- Copiar texto seleccionado
- Desencadenador de cambio del atributo del elemento
- Elemento existente
- Ámbito del elemento
- Desencadenador de cambio de estado de elemento
- Exportar el árbol de la IU
- Extraer datos estructurados
- Buscar elementos secundarios
- Buscar elemento
- Buscar imagen
- Buscar coincidencias de imágenes
- Buscar texto OCR
- Buscar elemento relativo
- Buscar posición de texto
- Obtener ventana activa
- Obtener antecesor
- Obtener atributo
- Obtener información de atributo
- Obtener a partir del portapapeles
- Obtener texto completo
- Obtener texto OCR
- Obtener contraseña
- Obtener posición
- Obtener elemento de origen
- Obtener texto
- Obtener texto visible
- Volver
- Avanzar
- Ir a inicio
- Google Cloud Vision OCR
- Ocultar ventana
- Resaltar
- Desencadenador de tecla de acceso rápido
- Mantener el puntero
- Mantener el puntero en imagen
- Mantener el puntero sobre texto OCR
- Mantener el puntero en el texto
- Imagen existente
- Indicar en pantalla
- Insertar código .NET
- Inject Js Script
- Invocar método de ActiveX
- Desencadenador de pulsación de tecla
- Cargar imagen
- Maximizar ventana
- Microsoft Azure Computer Vision OCR
- Microsoft OCR
- Microsoft Project Oxford Online OCR
- Minimizar ventana
- Supervisar eventos
- Desencadenador del ratón
- Mover ventana
- Ir a
- Texto OCR existente
- Apariencia en elemento
- Fuga en elemento
- Apariencia en imagen
- Fuga en imagen
- Abrir aplicación
- Abrir navegador
- Actualizar navegador
- Reproducir evento de usuario
- Restaurar ventana
- Guardar imagen
- Seleccionar elemento
- Seleccionar varios elementos
- Enviar tecla de acceso rápido
- Establecer región de recorte
- Establecer foco
- Establecer texto
- Establecer en portapapeles
- Establecer atributo web
- Mostrar ventana
- Iniciar proceso
- Desencadenador del sistema
- Realizar captura
- Tesseract OCR
- Texto existente
- Información sobre herramientas
- Escribir en
- Escribir Texto Seguro
- Utilizar primer plano
- Esperar a atributo
- Esperar a fuga de elemento
- Esperar a fuga de imagen
- Comprobación de accesibilidad
- Desencadenador de eventos de aplicación
- Bloquear entrada de usuario
- Marcar/Desmarcar
- Comprobar estado de aplicación
- Comprobar elemento
- Clic
- Clic desencadenador de eventos
- Arrastrar y soltar
- Extraer datos de tabla
- Buscar elementos
- Para cada elemento de interfaz de usuario
- Obtener datos del navegador
- Obtener Portapapeles
- Obtener texto
- Obtener URL
- Ir a URL
- Resaltar
- Mantener el puntero
- Inject Js Script
- Atajos del teclado
- Desencadenador de eventos de pulsación de tecla
- Desplazamiento del ratón
- Navegar por el navegador
- Guardar imagen
- Seleccionar elemento
- Establecer datos del navegador
- Configurar el portapapeles
- Establecer navegador de Runtime
- Establecer foco
- Establecer texto
- Realizar captura
- Escribir en
- Desbloquear entrada de usuario
- Utilizar Aplicación/Navegador
- Operación de ventana
- Transacción de llamada
- Clic en imagen en pantalla
- Hacer clic en botón de barra de herramientas
- Expandir tabla jerárquica ALV
- Expandir árbol ALV
- Expandir árbol
- Lectura de barra de estado
- Inicio de sesión en SAP
- Inicio de sesión en SAP
- Desencadenador de cambio de atributos de sesión de SAP
- Seleccionar fechas en el calendario
- Seleccionar elemento de menú
- Ámbito de la celda de la tabla
- Transacción de llamada
- Clic en imagen en pantalla
- Hacer clic en botón de barra de herramientas
- Expandir tabla jerárquica ALV
- Expandir árbol ALV
- Expandir árbol
- Lectura de barra de estado
- Inicio de sesión en SAP
- Inicio de sesión en SAP
- Seleccionar fechas en el calendario
- Seleccionar elemento de menú
- Ámbito de la celda de la tabla
- Realizar búsquedas en el navegador y recuperar resultados mediante las API de automatización de IU
- Exploración web
- Buscar imágenes
- Hacer clic en imágenes
- Eventos de desencadenador y supervisor
- Crear y anular archivos
- Páginas HTML: extraer y manipular información
- Manipulación de ventana
- Selección de lista automatizada
- Buscar y manipular elementos de ventana
- Gestionar automatización de texto
- Cargar y procesar imágenes
- Gestionar acciones activadas por el ratón
- Automatizar tiempo de ejecución de aplicación
- Ejecución automática de una aplicación local
- Navegación de explorador
- Automatización web
- Ejemplo de ámbito de desencadenador
- Habilitar soporte de automatización de IU en DevExpress
- Computer Vision Local Server
- Automatización móvil
- Notas relacionadas
- Acerca de la arquitectura de automatización de dispositivos móviles
- Compatibilidad de proyectos
- Obtener tipos de registro
- Obtener registros
- Obtener origen de la página
- Obtener la orientación del dispositivo
- Obtener identificador de sesión
- Instalar aplicación
- Administrar aplicación actual
- Administrar otras aplicaciones
- Abrir enlace profundo
- Abrir URL
- Conexión de dispositivo móvil
- Deslizamiento direccional
- Patrón de dibujo
- Pase de dedo posicional
- Pulse un botón del hardware
- Establecer orientación del dispositivo
- Realizar captura
- Tomar parte de la captura de pantalla
- Elemento existente
- Ejecutar comando
- Obtener atributo
- Obtener elemento seleccionado
- Obtener texto
- Establecer elemento seleccionado
- Establecer texto
- Deslizamiento
- Pulsar
- Escribir Texto
- Primeros pasos con las API de automatización móvil
- Gestionar cuadros de diálogo emergentes en automatizaciones móviles
- Creating variables from selector attributes
- Creación de flujos de trabajo de automatización móvil
- Utilizar automatización móvil para una aplicación de banca móvil
- Automatización para aplicaciones React Native
- Terminal
- Notas relacionadas
- Acerca del paquete de actividades de Terminal
- Compatibilidad de proyectos
- Mejores prácticas
- Buscar texto
- Obtener color de la posición
- Obtener la posición del cursor
- Obtener campo
- Obtener campo en posición
- Obtener área de pantalla
- Obtener texto
- Obtener texto en posición
- Mover cursor
- Mover cursor al texto
- Enviar tecla de control
- Teclas de envío
- Teclas de envío seguras
- Establecer campo
- Configurar campo en posición
- Sesión del terminal
- Esperar texto de campo
- Esperar a que la pantalla esté lista
- Esperar texto en pantalla
- Esperar texto en posición
- API de automatización codificadas de terminal
Actividades UIAutomation
Abre una aplicación de escritorio o una página del navegador web para usar en la automatización de IU.
Esta API se utiliza llamando al servicio UiAutomation, según el siguiente formato: uiAutomation.API(). Por ejemplo, uiAutomation.Open().
Definición
Espacio de nombres: UiPath.UIAutomationNext.API.Contracts
Ensamblado: UiPath.UIAutomationNext.API.Contracts (en UiPath.UIAutomationNext.API.Contracts dll)
Sobrecargas
| Sobrecarga | Descripción |
|---|---|
Open(String, TargetAppOptions, String, String) | Abre una aplicación de escritorio o página web específica para utilizar en la automatización de la interfaz de usuario, identificada por el nombre de pantalla del repositorio de objetos. |
Open(TargetAppModel, TargetAppOptions) | Abre una aplicación de escritorio o página web específica para usar en la automatización de la interfaz de usuario, identificada por el objeto TargetAppModel . |
Open(String, String, String, NAppOpenMode, NWindowResize, NInteractionMode) | Abre una aplicación de escritorio o página web específica para utilizar en la automatización de la interfaz de usuario, identificada por el nombre de pantalla del repositorio de objetos, junto con otras personalizaciones de la aplicación o página web. |
Open(String, TargetAppOptions, String, String)
Abre una aplicación de escritorio o página web específica para utilizar en la automatización de la interfaz de usuario, identificada por el nombre de pantalla del repositorio de objetos.
Open(
string screenName,
TargetAppOptions targetAppOptions,
[string appName],
[string appVersion])
Open(
string screenName,
TargetAppOptions targetAppOptions,
[string appName],
[string appVersion])
screeName Cadena : el nombre de la pantalla en la que quieres centrarte, como una Cadena grabada dentro del Repositorio de objetos.
targetAppOptions : opciones y ajustes adicionales para adjuntar a la aplicación o página web:
* `Timeout Double` - Specify a number
of seconds for which to wait for the activity to be executed before
throwing an error. The default value is 30 seconds. When indicating
a window in a Remote Desktop environment, the Timeout default
setting is set to 60 seconds.
* `InteractionMode
NInteractionMode`:
+ `HardwareEvents` - Uses the hardware
driver to perform the action. This is the slowest API, it
cannot work in the background, but it is compatible with all
desktop apps.
+ `Simulate` - Simulates the action using
accessibility APIs. Recommended in browser automation, Java
apps, or SAP. More reliable than Hardware Events. Sends all
text in a single action. Works even if the target
application is not in focus. Please test if your target
application UI element supports this.
+ `DebuggerApi` - Performs actions using
debugger APIs. Works only for Chromium elements. Sends all
text in one go. Works even if target app is not in focus.
For more details, check out this [page](https://docs.uipath.com/studio/docs/chromium-api).
+ `WindowMessages` - Sends the mouse and
keyboard input through Win32 messages. Recommended for
desktop apps. Usually more reliable than Hardware Events.
Sends all text in a single action. Works even if target app
is not in focus. Please test if your target application UI
element supports this.
+ `Background` - Runs actions in the
background. Tries to use either Simulate or Chromium API
where possible, while complex APIs (image, native text)
run as usual, in the foreground. It is highly recommended to
use this API with the [Verify Execution](https://docs.uipath.com/activities/other/latest/user-guide/project-settings-ui-automation)
feature.
* `OpenMode NAppOpenMode` - choose when
to open the app:
+ `Never` (never open the
application)
+ `IfNotOpen` (open only if the
application is closed, this is the default selection, only
works if `FilePath` or `URL`
are provided)
+ `Always` (open another instance of the
application even if one is already open, only works if
`FilePath` or `URL` are
provided)
* `WindowResize NWindowResize` - choose
the size of the window:
+ `None`
+ `Maximize`
+ `Restore`
+ `Minimize`
* `UserDataFolderMode
BrowserUserDataFolderMode` - The
`UserDataFolderMode` you want to set. It is used
to start the browser with a specific user data folder.
+ `Automatic` - Picture In Picture mode
uses a different folder than the default mode, automatically
generated if `UserDataFolderPath` is not
set.
+ `DefaultFolder` - Uses the default
browser folder, no matter if it runs in the main or PIP
session.
+ `CustomFolder` - Uses the folder
specified in `UserDataFolderPath` or an auto
generated path if `UserDataFolderPath` is not
set.
* `UserDataFolderPath String` - The
user data folder that the browser uses. Defaults to
`%LocalAppData%\UiPath\PIP Browser
Profiles\BrowserType` if not set.
* `IsIncognito Boolean` - input
`True` if you want to open the browser in
incognito mode. By default it's set to `False`.
* `WebDriverMode NWebDriverMode` -
Indicates how the WebDriver is used when opening a new browser
session. The following options are available:
+ `Disabled` - Disables the use of
WebDriver.
+ `WithGUI` - The GUI of the browser is
displayed.
+ `Headless` - The browser is launched
silently, with no GUI.
* `Timeout Double` - Specify a number
of seconds for which to wait for the activity to be executed before
throwing an error. The default value is 30 seconds. When indicating
a window in a Remote Desktop environment, the Timeout default
setting is set to 60 seconds.
* `InteractionMode
NInteractionMode`:
+ `HardwareEvents` - Uses the hardware
driver to perform the action. This is the slowest API, it
cannot work in the background, but it is compatible with all
desktop apps.
+ `Simulate` - Simulates the action using
accessibility APIs. Recommended in browser automation, Java
apps, or SAP. More reliable than Hardware Events. Sends all
text in a single action. Works even if the target
application is not in focus. Please test if your target
application UI element supports this.
+ `DebuggerApi` - Performs actions using
debugger APIs. Works only for Chromium elements. Sends all
text in one go. Works even if target app is not in focus.
For more details, check out this [page](https://docs.uipath.com/es/studio/docs/chromium-api).
+ `WindowMessages` - Sends the mouse and
keyboard input through Win32 messages. Recommended for
desktop apps. Usually more reliable than Hardware Events.
Sends all text in a single action. Works even if target app
is not in focus. Please test if your target application UI
element supports this.
+ `Background` - Runs actions in the
background. Tries to use either Simulate or Chromium API
where possible, while complex APIs (image, native text)
run as usual, in the foreground. It is highly recommended to
use this API with the [Verify Execution](https://docs.uipath.com/es/activities/other/latest/user-guide/project-settings-ui-automation)
feature.
* `OpenMode NAppOpenMode` - choose when
to open the app:
+ `Never` (never open the
application)
+ `IfNotOpen` (open only if the
application is closed, this is the default selection, only
works if `FilePath` or `URL`
are provided)
+ `Always` (open another instance of the
application even if one is already open, only works if
`FilePath` or `URL` are
provided)
* `WindowResize NWindowResize` - choose
the size of the window:
+ `None`
+ `Maximize`
+ `Restore`
+ `Minimize`
* `UserDataFolderMode
BrowserUserDataFolderMode` - The
`UserDataFolderMode` you want to set. It is used
to start the browser with a specific user data folder.
+ `Automatic` - Picture In Picture mode
uses a different folder than the default mode, automatically
generated if `UserDataFolderPath` is not
set.
+ `DefaultFolder` - Uses the default
browser folder, no matter if it runs in the main or PIP
session.
+ `CustomFolder` - Uses the folder
specified in `UserDataFolderPath` or an auto
generated path if `UserDataFolderPath` is not
set.
* `UserDataFolderPath String` - The
user data folder that the browser uses. Defaults to
`%LocalAppData%\UiPath\PIP Browser
Profiles\BrowserType` if not set.
* `IsIncognito Boolean` - input
`True` if you want to open the browser in
incognito mode. By default it's set to `False`.
* `WebDriverMode NWebDriverMode` -
Indicates how the WebDriver is used when opening a new browser
session. The following options are available:
+ `Disabled` - Disables the use of
WebDriver.
+ `WithGUI` - The GUI of the browser is
displayed.
+ `Headless` - The browser is launched
silently, with no GUI.
appName Cadena : el nombre de la aplicación a la que adjuntar. Este parámetro es aplicable a las aplicaciones de escritorio.
appVersion Cadena : la versión de la aplicación a la que se adjuntará. Este parámetro es aplicable a las aplicaciones de escritorio.
Open(TargetAppModel, TargetAppOptions)
Abre una aplicación de escritorio o página web específica para usar en la automatización de la interfaz de usuario, identificada por el objeto TargetAppModel .
Open(
TargetAppModel targetApp,
[TargetAppOptions targetAppOptions])
Open(
TargetAppModel targetApp,
[TargetAppOptions targetAppOptions])
targetApp TargetAppModel : la aplicación o página web de destino a la que adjuntar. Es un objeto de tipo TargetAppModel que proporciona información sobre la aplicación:
* `Selector` - An XML fragment that stores the
attributes of a user interface element.
* `FilePath` - If the application is not a web
browser, specifies the full path of the executable file to
open.
* `Arguments` - If the application is not a web
browser, you can specify parameters to pass to the target
application at startup.
* `Url`
- If the application is a web browser, specifies the URL of the web
page to open.
* `Title` - The title of the application or
browser.
* `Selector` - An XML fragment that stores the
attributes of a user interface element.
* `FilePath` - If the application is not a web
browser, specifies the full path of the executable file to
open.
* `Arguments` - If the application is not a web
browser, you can specify parameters to pass to the target
application at startup.
* `Url`
- If the application is a web browser, specifies the URL of the web
page to open.
* `Title` - The title of the application or
browser.
targetAppOptions : opciones y ajustes adicionales para adjuntar a la aplicación o página web:
* `Timeout Double` - Specify a number of seconds
for which to wait for the activity to be executed before throwing an
error. The default value is 30 seconds. When indicating a window in
a Remote Desktop environment, the Timeout default setting is set to
60 seconds.
* `InteractionMode NInteractionMode`:
+ `HardwareEvents` - Uses the hardware driver
to perform the action. This is the slowest API, it cannot
work in the background, but it is compatible with all
desktop apps.
+ `Simulate` - Simulates the action using
accessibility APIs. Recommended in browser automation, Java
apps, or SAP. More reliable than Hardware Events. Sends all
text in a single action. Works even if the target
application is not in focus. Please test if your target
application UI element supports this.
+ `DebuggerApi` - Performs actions using
debugger APIs. Works only for Chromium elements. Sends all
text in one go. Works even if target app is not in focus.
For more details, check out this [page](https://docs.uipath.com/studio/docs/chromium-api).
+ `WindowMessages` - Sends the mouse and
keyboard input through Win32 messages. Recommended for
desktop apps. Usually more reliable than Hardware Events.
Sends all text in a single action. Works even if target app
is not in focus. Please test if your target application UI
element supports this.
+ `Background` - Runs actions in the
background. Tries to use either Simulate or Chromium API
where possible, while complex APIs (image, native text)
run as usual, in the foreground. It is highly recommended to
use this API with the [Verify Execution](https://docs.uipath.com/activities/other/latest/user-guide/project-settings-ui-automation)
feature.
* `OpenMode NAppOpenMode` - choose when to open
the app:
+ `Never` (never open the application)
+ `IfNotOpen` (open only if the application is
closed, this is the default selection, only works if
`FilePath` or `URL` are
provided)
+ `Always` (open another instance of the
application even if one is already open, only works if
`FilePath` or `URL` are
provided)
* `WindowResize NWindowResize` - choose the size
of the window:
+ `None`
+ `Maximize`
+ `Restore`
+ `Minimize`
* `UserDataFolderMode BrowserUserDataFolderMode`
- The `UserDataFolderMode` you want to set. It is
used to start the browser with a specific user data folder.
+ `Automatic` - Picture In Picture mode uses a
different folder than the default mode, automatically
generated if `UserDataFolderPath` is not
set.
+ `DefaultFolder` - Uses the default browser
folder, no matter if it runs in the main or PIP
session.
+ `CustomFolder` - Uses the folder specified in
`UserDataFolderPath` or an auto generated
path if `UserDataFolderPath` is not set.
* `UserDataFolderPath String` - The user data
folder that the browser uses. Defaults to
`%LocalAppData%\UiPath\PIP Browser
Profiles\BrowserType` if not set.
* `IsIncognito Boolean` - input
`True` if you want to open the browser in
incognito mode. By default it's set to `False`.
* `WebDriverMode NWebDriverMode` - Indicates how
the WebDriver is used when opening a new browser session. The
following options are available:
+ `Disabled` - Disables the use of
WebDriver.
+ `WithGUI` - The GUI of the browser is
displayed.
+ `Headless` - The browser is launched
silently, with no GUI.
* `Timeout Double` - Specify a number of seconds
for which to wait for the activity to be executed before throwing an
error. The default value is 30 seconds. When indicating a window in
a Remote Desktop environment, the Timeout default setting is set to
60 seconds.
* `InteractionMode NInteractionMode`:
+ `HardwareEvents` - Uses the hardware driver
to perform the action. This is the slowest API, it cannot
work in the background, but it is compatible with all
desktop apps.
+ `Simulate` - Simulates the action using
accessibility APIs. Recommended in browser automation, Java
apps, or SAP. More reliable than Hardware Events. Sends all
text in a single action. Works even if the target
application is not in focus. Please test if your target
application UI element supports this.
+ `DebuggerApi` - Performs actions using
debugger APIs. Works only for Chromium elements. Sends all
text in one go. Works even if target app is not in focus.
For more details, check out this [page](https://docs.uipath.com/es/studio/docs/chromium-api).
+ `WindowMessages` - Sends the mouse and
keyboard input through Win32 messages. Recommended for
desktop apps. Usually more reliable than Hardware Events.
Sends all text in a single action. Works even if target app
is not in focus. Please test if your target application UI
element supports this.
+ `Background` - Runs actions in the
background. Tries to use either Simulate or Chromium API
where possible, while complex APIs (image, native text)
run as usual, in the foreground. It is highly recommended to
use this API with the [Verify Execution](https://docs.uipath.com/es/activities/other/latest/user-guide/project-settings-ui-automation)
feature.
* `OpenMode NAppOpenMode` - choose when to open
the app:
+ `Never` (never open the application)
+ `IfNotOpen` (open only if the application is
closed, this is the default selection, only works if
`FilePath` or `URL` are
provided)
+ `Always` (open another instance of the
application even if one is already open, only works if
`FilePath` or `URL` are
provided)
* `WindowResize NWindowResize` - choose the size
of the window:
+ `None`
+ `Maximize`
+ `Restore`
+ `Minimize`
* `UserDataFolderMode BrowserUserDataFolderMode`
- The `UserDataFolderMode` you want to set. It is
used to start the browser with a specific user data folder.
+ `Automatic` - Picture In Picture mode uses a
different folder than the default mode, automatically
generated if `UserDataFolderPath` is not
set.
+ `DefaultFolder` - Uses the default browser
folder, no matter if it runs in the main or PIP
session.
+ `CustomFolder` - Uses the folder specified in
`UserDataFolderPath` or an auto generated
path if `UserDataFolderPath` is not set.
* `UserDataFolderPath String` - The user data
folder that the browser uses. Defaults to
`%LocalAppData%\UiPath\PIP Browser
Profiles\BrowserType` if not set.
* `IsIncognito Boolean` - input
`True` if you want to open the browser in
incognito mode. By default it's set to `False`.
* `WebDriverMode NWebDriverMode` - Indicates how
the WebDriver is used when opening a new browser session. The
following options are available:
+ `Disabled` - Disables the use of
WebDriver.
+ `WithGUI` - The GUI of the browser is
displayed.
+ `Headless` - The browser is launched
silently, with no GUI.
Open(String, String, String, NAppOpenMode, NWindowResize, NInteractionMode)
Abre una aplicación de escritorio o página web específica para utilizar en la automatización de la interfaz de usuario, identificada por el nombre de pantalla del repositorio de objetos, junto con otras personalizaciones de la aplicación o página web.
Open(
string screenName,
[string appName],
[string appVersion],
[NAppOpenMode openMode],
[NWindowResize windowResize],
[NInteractionMode interactionMode])
Open(
string screenName,
[string appName],
[string appVersion],
[NAppOpenMode openMode],
[NWindowResize windowResize],
[NInteractionMode interactionMode])
screeName Cadena : el nombre de la pantalla en la que quieres centrarte, como una Cadena grabada dentro del Repositorio de objetos.
appName Cadena : el nombre de la aplicación a la que adjuntar. Este parámetro es aplicable a las aplicaciones de escritorio.
appVersion Cadena : la versión de la aplicación a la que se adjuntará. Este parámetro es aplicable a las aplicaciones de escritorio.
openMode NAppOpenMode : selecciona cuándo abrir la aplicación de destino para la ejecución de la automatización:
* `Never` (never open the application)
* `IfNotOpen` (open only if the application is closed,
this is the default selection, only works if the
`Url` parameter is configured)
* `Always` - (open another instance of the application
even if one is already open, only works if the `Url`
parameter is configured).
* `Never` (never open the application)
* `IfNotOpen` (open only if the application is closed,
this is the default selection, only works if the
`Url` parameter is configured)
* `Always` - (open another instance of the application
even if one is already open, only works if the `Url`
parameter is configured).
NWindowResize : elige el tamaño de la ventana:
* `None`
* `Maximize`
* `Restore`
* `Minimize`
* `None`
* `Maximize`
* `Restore`
* `Minimize`
NInteractionMode : elige qué API debe utilizar el robot para interactuar con la aplicación de destino:
* `HardwareEvents` - Uses the hardware driver to
perform the action. This is the slowest API, it cannot work in
the background, but it is compatible with all desktop apps.
* `Simulate` - Simulates the action using accessibility
APIs. Recommended in browser automation, Java apps, or SAP. More
reliable than Hardware Events. Sends all text in a single action.
Works even if the target application is not in focus. Please test if
your target application UI element supports this.
* `DebuggerApi` - Performs actions using debugger APIs.
Works only for Chromium elements. Sends all text in one go. Works
even if target app is not in focus. For more details, check out this
[page](https://docs.uipath.com/studio/docs/chromium-api).
* `WindowMessages` - Sends the mouse and keyboard input
through Win32 messages. Recommended for desktop apps. Usually more
reliable than Hardware Events. Sends all text in a single action.
Works even if target app is not in focus. Please test if your target
application UI element supports this.
* `Background` - Runs actions in the background. Tries
to use either Simulate or Chromium API where possible, while complex
APIs (image, native text) run as usual, in the foreground. It is
highly recommended to use this API with the [Verify Execution](https://docs.uipath.com/activities/other/latest/user-guide/project-settings-ui-automation)
feature.
* `HardwareEvents` - Uses the hardware driver to
perform the action. This is the slowest API, it cannot work in
the background, but it is compatible with all desktop apps.
* `Simulate` - Simulates the action using accessibility
APIs. Recommended in browser automation, Java apps, or SAP. More
reliable than Hardware Events. Sends all text in a single action.
Works even if the target application is not in focus. Please test if
your target application UI element supports this.
* `DebuggerApi` - Performs actions using debugger APIs.
Works only for Chromium elements. Sends all text in one go. Works
even if target app is not in focus. For more details, check out this
[page](https://docs.uipath.com/es/studio/docs/chromium-api).
* `WindowMessages` - Sends the mouse and keyboard input
through Win32 messages. Recommended for desktop apps. Usually more
reliable than Hardware Events. Sends all text in a single action.
Works even if target app is not in focus. Please test if your target
application UI element supports this.
* `Background` - Runs actions in the background. Tries
to use either Simulate or Chromium API where possible, while complex
APIs (image, native text) run as usual, in the foreground. It is
highly recommended to use this API with the [Verify Execution](https://docs.uipath.com/es/activities/other/latest/user-guide/project-settings-ui-automation)
feature.
Ejecutar WebDriverMode como Headless
Para operar WebDriverMode en una configuración sin interfaz gráfica, estos pasos pueden servir como guía.
Comienza definiendo una variable para tu pantalla. Utiliza la función uiAutomation.Open para abrir una nueva aplicación en el navegador de tu elección: en esta instancia, Edge.Después de eso, utiliza la clase Options en la sobrecarga para especificar ciertas opciones del navegador.Entre estas opciones, establece webDriverMode en NWebDriverMode.Headless.
El código correspondiente se ve así:
var screen = uiAutomation.Open(Descriptors.NewApplication.Edge, Options.AppOpen().WithBrowserOptions(webDriverMode: NWebDriverMode.Headless));
var screen = uiAutomation.Open(Descriptors.NewApplication.Edge, Options.AppOpen().WithBrowserOptions(webDriverMode: NWebDriverMode.Headless));
Este código funciona para establecer tu WebDriver en modo sin interfaz gráfica, habilitando la automatización del navegador sin que el navegador esté visiblemente abierto.