Class AiOCRSettings

java.lang.Object
com.hp.lft.sdk.ai.AiOCRSettings

public class AiOCRSettings extends Object
The AI OCR settings to use in AI-based Web tests, which can be updated during runtime using AiRunSettings.
  • Constructor Details

    • AiOCRSettings

      public AiOCRSettings()
      Constructs a new instance of AiOCRSettings.
  • Method Details

    • setLanguages

      public AiOCRSettings setLanguages(String[] languages)
      Sets the languages to be used by the AI OCR. Note: the order of languages defines their precedence.
      Parameters:
      languages - an array of languages to be used by the AI OCR. Use AiOCRLanguages for the supported values.
      Returns:
      this instance with the updated state (builder pattern).
    • setLanguages

      public AiOCRSettings setLanguages(String languages)
      Sets the languages to be used by the AI OCR. Note: the order of languages defines their precedence.
      Parameters:
      languages - a string containing the languages to be used by the AI OCR in comma separated format. Use AiOCRLanguages for the supported values.
      Returns:
      this instance with the updated state (builder pattern).
    • setOCRType

      public AiOCRSettings setOCRType(OCRType ocrType)
      Specifies which OCR settings to use for AI-based steps in web tests.
      Parameters:
      ocrType - The type of OCR settings to use. Use OCRType for the supported values.
      Returns:
      this instance with the updated state (builder pattern).