UiPath Documentation
activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Atividades do UIAutomation

Obter parte da captura de tela

UiPath.MobileAutomation.Activities.TakeScreenshotPart

Description

Takes a screenshot of a predefined location on the mobile device screen with starting and ending points.

Use case

Use a atividade Take Screenshot Parte para capturar uma tela em forma de retângulo na tela do seu dispositivo móvel. Por exemplo, você pode usar a atividade Tesseract OCR para extrair o texto da tela do dispositivo móvel, conforme mostrado na captura de tela a seguir.

Certifique-se de definir as seguintes propriedades:

  • Image in both Take Screenshot Part and Tessarect OCR.

  • Text for the Tesseract OCR output (e.g., outputText) and its corresponding variable as String in Data Manager.

Compatibilidade do projeto

Windows - Legacy | Windows

Configuração

Painel do Designer

  • Indicar região - indique a parte da tela do dispositivo móvel da qual você deseja fazer uma captura de tela.
  • CoordinatesType - Choose how to set the target coordinates. You can select one of the following:
    • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
    • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
  • EndPointX - Set a screenshot ending point for your X axis on the device screen.
  • EndPointY - Set a screenshot ending point for your Y axis on the device screen.
  • StartPointX - Set a screenshot starting point for your X axis on the device screen.
  • StartPointY - Set a screenshot starting point for your Y axis on the device screen.

Painel de Propriedades

Comum

  • ContinuarComErro — especifica se a automação deve continuar mesmo quando a atividade gera um erro. Este campo só aceita valores booleanos (True, False). O valor padrão é False. Como resultado, se o campo estiver em branco e um erro for lançado, a execução do projeto será interrompida. Se o valor for definido como True, a execução do projeto prosseguirá mesmo com erros.

    Observação:

    Se esta atividade estiver incluída em Try Catch e o valor da propriedade Continuar com erro for Verdadeiro, nenhum erro será capturado quando o projeto for executado.

  • DelayAfter - Delay time (in seconds) after executing the activity. The default value is 0.3 seconds.

  • DelayBefore - Delay time (in seconds) before the activity begins performing any operations. The default value is 0.2 seconds.

  • DisplayName - O nome de exibição da atividade.

  • Timeout - specifies the amount of time (in seconds) to wait for a specified element to be found before an error is thrown. The default value is 30 seconds.

Entrada

  • CoordinatesType - Choose how to set the target coordinates. You can select one of the following:
    • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
    • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
  • EndPointX - Set a screenshot ending point for your X axis on the device screen.
  • EndPointY - Set a screenshot ending point for your Y axis on the device screen.
  • StartPointX - Set a screenshot starting point for your X axis on the device screen.
  • StartPointY - Set a screenshot starting point for your Y axis on the device screen.

Diversos

  • Privado - Se selecionado, os valores de variáveis e argumentos não são mais registrados no nível Verbose.

Saída

  • Screenshot part - The screenshot part of the mobile device, stored in an Image object. This field supports only Image variables.
  • Description
  • Use case
  • Compatibilidade do projeto
  • Configuração
  • Painel do Designer
  • Painel de Propriedades
  • Comum
  • Entrada
  • Diversos
  • Saída

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades