- Visão geral
- Automação de Interface Gráfica
- Sobre o pacote de atividades UIAutomation
- Aplicativos e tecnologias automatizados com a Automação de Interface Gráfica
- Compatibilidade do projeto
- UI-ANA-016 - Extrair URL de navegador aberto
- UI-ANA-017 - ContinuarComErro verdadeiro
- UI-ANA-018 - Listar atividades de OCR/Imagem
- UI-DBP-006 - Uso do contêiner
- UI-DBP-013 - Uso Incorreto da Automação do Excel
- UI-DBP-030 - Uso de variáveis proibidas em seletores
- UI-DBP-031 - Verificação de atividades
- UI-PRR-001 - Simular clique
- UI-PRR-002 - Simular Digitação
- UI-PRR-003 - Uso incorreto do aplicativo aberto
- UI-PRR-004 - Atrasos Embutidos em Código
- UI-REL-001 - Idx grande em Seletores
- UI-SEC-004 - Dados de e-mail do seletor
- UI-SEC-010 — restrições de app/URL
- UI-USG-011 - Atributos não permitidos
- UX-SEC-010 — restrições de app/URL
- UX-DBP-029 - Uso de senha não segura
- UI-PST-001 - Nível de log de auditoria nas configurações do projeto
- Ferramenta de Migração de Navegador do UiPath
- Região do Recorte
- Computer Vision Recorder
- Índice de atividades
- Ativar
- Anchor Base
- Anexar Navegador
- Anexar Janela
- Block User Input
- Texto Explicativo
- Marcar
- Click
- Clicar na Imagem
- Click Image Trigger
- Click OCR Text
- Clicar no Texto
- Click Trigger
- Close Application
- Fechar Guia
- Close Window
- Context Aware Anchor
- Copy Selected Text
- Element Attribute Change Trigger
- Element Exists
- Element Scope
- Element State Change Trigger
- Export UI Tree
- Extrair Dados Estruturados
- Find Children
- Localizar Elemento
- Localizar Imagem
- Find Image Matches
- Find OCR Text Position
- Localizar Elemento Relativo
- Find Text Position
- Get Active Window
- Get Ancestor
- Get Attribute
- Get Event Info
- Get From Clipboard
- Obter Texto Completo
- Get OCR Text
- Get Password
- Get Position
- Get Source Element
- Get Text
- Obter Texto Visível
- Voltar
- Avançar
- Ir para a Página Inicial
- Google Cloud Vision OCR
- Hide Window
- Highlight
- Hotkey Trigger
- Hover
- Focalizar Imagem
- Hover OCR Text
- Focalizar Texto
- Imagem Existe
- Indicate On Screen
- Inject .NET Code
- Inject Js Script
- Invoke ActiveX Method
- Key Press Trigger
- Carregar Imagem
- Maximize Window
- Microsoft Azure Computer Vision OCR
- Microsoft OCR
- Microsoft Project Oxford Online OCR
- Minimize Window
- Monitorar eventos
- Mouse Trigger
- Move Window
- Navegar Para
- OCR Text Exists
- On Element Appear
- On Element Vanish
- Aparecer Na Imagem
- Desaparecer Na Imagem
- Abrir Aplicativo
- Abrir Navegador
- Atualizar Navegador
- Replay User Event
- Restore Window
- Save Image
- Select Item
- Select Multiple Items
- Enviar Tecla de Acesso
- Set Clipping Region
- Set Focus
- Set Text
- Set To Clipboard
- Set Web Attribute
- Show Window
- Iniciar Processo
- System Trigger
- Take Screenshot
- Tesseract OCR
- Texto Existe
- Dica de ferramenta
- Type Into
- Digitar Texto Seguro
- Use Foreground
- Wait Attribute
- Esperar Elemento Desaparecer
- Aguardar Imagem Desaparecer
- Verificação de acessibilidade
- Application event trigger
- Block User Input
- Check/Uncheck
- Check App State
- Check Element
- Click
- Click Event Trigger
- Drag and Drop
- Element Scope
- Extract Table Data
- Localizar elementos
- For Each UI Element
- Get Browser Data
- Obter Área de Transferência
- Get Text
- Get URL
- Go To URL
- Highlight
- Hover
- Inject Js Script
- Keyboard Shortcuts
- Keypress Event Trigger
- Mouse Scroll
- Navigate Browser
- Save Image
- Select Item
- Set Browser Data
- Definir Área de Transferência
- Definir servidor CV
- Set Runtime Browser
- Set Focus
- Definir configuração do projeto
- Set Text
- Take Screenshot
- Type Into
- Unblock User Input
- Window operation
- Realize pesquisa no navegador e recupere resultados usando APIs de Automação de interface gráfica
- Navegação na Web
- Localizar imagens
- Clicar em imagens
- Disparar e monitorar eventos
- Criar e substituir arquivos
- Páginas HTML: extrair e manipular informações
- Manipulação de janelas
- Seleção automatizada de listas
- Localizar e manipular elementos de janela
- Gerenciar automação de texto
- Carregar e processar imagens
- Gerenciar ações ativadas pelo mouse
- Automatizar o runtime de aplicativos
- Execução automatizada de um aplicativo local
- Navegação em navegador
- Automação da Web
- Exemplo de escopo de disparador
- Habilitar o suporte de Automação de Interface Gráfica no DevExpress
- Computer Vision Local Server
- Automação Móvel
- Notas de versão
- Sobre a arquitetura de automação de dispositivos móveis
- Compatibilidade do projeto
- Get Log Types
- Get Logs
- Get Page Source
- Get Device Orientation
- Get Session Identifier
- Instalar Aplicativo
- Gerenciar Aplicativo Atual
- Manage Other App
- Open DeepLink
- Abrir URL
- Mobile Device Connection
- Deslizar Direcional
- Padrão de Desenho
- Positional Swipe
- Press Hardware Button
- Set Device Orientation
- Take Screenshot
- Obter parte da captura de tela
- Element Exists
- Execute Command
- Get Attribute
- Get Selected Item
- Get Text
- Set Selected Item
- Set Text
- Deslizar
- Tap
- Type Text
- Terminal
- Notas de versão
- Sobre o pacote de atividades Terminal
- Compatibilidade do projeto
- Melhores práticas
- Find Text
- Get Color At Position
- Get Cursor Position
- Get Field
- Obter Campo na Posição
- Obter Área da Tela
- Get Text
- Obter Texto na Posição
- Mover Cursor
- Mover cursor para o texto
- Enviar Tecla de Controle
- Send Keys
- Send Keys Secure
- Set Field
- Definir Campo na Posição
- Terminal Session
- Aguardar Texto do Campo
- Wait Screen Ready
- Aguardar Texto da Tela
- Aguardar Texto na Posição
- APIs de automação codificadas em terminais
Abre um aplicativo da área de trabalho ou uma página do navegador da Web para serem usados na automação de interface gráfica.
Essa API é usada chamando o serviço UIAutomation, com base no seguinte formato: uiAutomation.API(). Por exemplo, uiAutomation.Open().
Definição
Namespace: UiPath.UIAutomationNext.API.Contracts
Assembly: UiPath.UIAutomationNext.API.Contracts (na dll UiPath.UIAutomationNext.API.Contracts)
Sobrecarregas
| Sobrecarga | Description |
|---|---|
Open(String, TargetAppOptions, String, String) | Abre um aplicativo de área de trabalho específico ou uma página da Web para usar na automação de interface gráfica, identificado pelo nome da tela no Repositório de Objetos. |
Open(TargetAppModel, TargetAppOptions) | Abre um aplicativo de área de trabalho específico ou uma página da Web para usar na automação de interface gráfica, identificado pelo objeto TargetAppModel . |
Open(String, String, String, NAppOpenMode, NWindowResize, NInteractionMode) | Abre um aplicativo de área de trabalho específico ou uma página da Web para usar na automação de interface gráfica, identificado pelo nome da tela no Repositório de Objetos, juntamente com outras personalizações do aplicativo ou da página da Web. |
Open(String, TargetAppOptions, String, String)
Abre um aplicativo de área de trabalho específico ou uma página da Web para usar na automação de interface gráfica, identificado pelo nome da tela no Repositório de Objetos.
Open(
string screenName,
TargetAppOptions targetAppOptions,
[string appName],
[string appVersion])
Open(
string screenName,
TargetAppOptions targetAppOptions,
[string appName],
[string appVersion])
screeName String : o nome da tela em que você deseja focar, como uma String gravada dentro do Repositório de objetos.
targetAppOptions : opções e configurações adicionais para anexar ao aplicativo ou à página da 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/pt-BR/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/pt-BR/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 String : o nome do aplicativo ao qual anexar. Esse parâmetro é aplicável para aplicativos de desktop.
appVersion String : a versão do aplicativo ao qual anexar. Esse parâmetro é aplicável para aplicativos de desktop.
Open(TargetAppModel, TargetAppOptions)
Abre um aplicativo de área de trabalho específico ou uma página da Web para usar na automação de interface gráfica, identificado pelo objeto TargetAppModel .
Open(
TargetAppModel targetApp,
[TargetAppOptions targetAppOptions])
Open(
TargetAppModel targetApp,
[TargetAppOptions targetAppOptions])
targetApp TargetAppModel : o aplicativo de destino ou página da web ao qual anexar. É um objeto do tipo TargetAppModel , que fornece informações sobre o aplicativo:
* `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 : opções e configurações adicionais para anexar ao aplicativo ou à página da 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/pt-BR/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/pt-BR/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 um aplicativo de área de trabalho específico ou uma página da Web para usar na automação de interface gráfica, identificado pelo nome da tela no Repositório de Objetos, juntamente com outras personalizações do aplicativo ou da página da 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 String : o nome da tela em que você deseja focar, como uma String gravada dentro do Repositório de objetos.
appName String : o nome do aplicativo ao qual anexar. Esse parâmetro é aplicável para aplicativos de desktop.
appVersion String : a versão do aplicativo ao qual anexar. Esse parâmetro é aplicável para aplicativos de desktop.
openMode NAppOpenMode : selecionar quando abrir o aplicativo de destino para a execução da automação:
* `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 : escolha o tamanho da janela:
* `None`
* `Maximize`
* `Restore`
* `Minimize`
* `None`
* `Maximize`
* `Restore`
* `Minimize`
NInteractionMode : escolha qual API o Robô deve usar para interagir com o aplicativo 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/pt-BR/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/pt-BR/activities/other/latest/user-guide/project-settings-ui-automation)
feature.
Execução do WebDriverMode como sem periféricos
Para operar WebDriverMode em uma configuração sem periféricos, essas etapas podem servir como um guia.
Comece definindo uma variável para sua tela. Use a função uiAutomation.Openpara abrir um novo aplicativo no navegador de sua escolha - nesta instância, Edge. Depois disso, use a classe Options na sobrecarga para especificar certas opções do navegador. Entre essas opções, defina webDriverModecomo NWebDriverMode.Headless.
O código correspondente fica assim:
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));
Esse código funciona para configurar seu WebDriver no modo Headless, habilitando a automação do navegador sem que o navegador esteja visivelmente aberto.