Interface AiObject

All Superinterfaces:
TestObject, TestObjectDescriber

public interface AiObject extends TestObject
An object identified using Artificial intelligence.
  • Method Details

    • click

      void click() throws GeneralLeanFtException
      Clicks in the middle of the AI object.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • doubleClick

      void doubleClick() throws GeneralLeanFtException
      Double-clicks in the middle of the AI object. This method is not supported for mobile applications.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • longClick

      void longClick() throws GeneralLeanFtException
      Long-clicks in the middle of the AI object. This method is currently not supported for mobile applications. Will be implemented in the future.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • rightClick

      void rightClick() throws GeneralLeanFtException
      Right-clicks in the middle of the AI object. This method is not supported for mobile applications.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • sendKeys

      void sendKeys(String text) throws GeneralLeanFtException
      Types the specified string into the AI object.
      Parameters:
      text - the string to type in the AI object.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • search

      void search(String text) throws GeneralLeanFtException
      Types the specified text into the search box and clicks the search icon. This method is supported only for the 'search' AI class.
      Parameters:
      text - the text to search for.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • sendSecureKeys

      void sendSecureKeys(String encodedText) throws GeneralLeanFtException
      Types the specified encoded string into the AI object.
      Parameters:
      encodedText - the encoded text to type in the AI object.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setState

      void setState(ToggleState state) throws GeneralLeanFtException
      Sets the state of a toggleable AI control. The toggleable AI controls are: Check Box, Toggle Button and Radio Button
      Parameters:
      state - the state to set.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setText

      void setText(String text) throws GeneralLeanFtException
      This method is relevant for AIObjects that represent text boxes, input controls, and combo boxes. This method is not supported for mobile applications.
      Parameters:
      text - the input to set.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getValue

      String getValue() throws GeneralLeanFtException
      Returns the AI object's value. The value is based on the following object properties: text for text objects, state for toggleable controls, and value for input fields, text boxes, and combo boxes.
      Returns:
      the AI object's value
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • hover

      void hover() throws GeneralLeanFtException
      Holds the cursor over an AI object. This method is not supported for mobile applications.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • hover

      void hover(int duration) throws GeneralLeanFtException
      Holds the cursor over an AI object for a given duration. This method is not supported for mobile applications.
      Parameters:
      duration - The duration value.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(String element) throws GeneralLeanFtException
      Selects an item from a combo box.
      Parameters:
      element - The item to select.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(String element, AiComboBoxSettings settings) throws GeneralLeanFtException
      Selects an item from a combo box, using the specified settings. After the select operation is finished the settings will be reverted to default.
      Parameters:
      element - The item to select.
      settings - The settings to use for the select.
      Throws:
      GeneralLeanFtException - if error occurs during execution