Class ComboBoxValidatorSI


public class ComboBoxValidatorSI
extends ComboBoxValidator
Author:
Madhav Krishna
  • Field Details

  • Constructor Details

    • ComboBoxValidatorSI

      public ComboBoxValidatorSI​(SmartAppDriver appDriver, ComboBoxSI uiObject, org.sikuli.script.Region region)
  • Method Details

    • validateDisabled

      @Deprecated public void validateDisabled​(int maxIterationsToLocateElements)
      Deprecated.
      Specified by:
      validateDisabled in class ComboBoxValidator
    • validateEnabled

      @Deprecated public void validateEnabled​(int maxIterationsToLocateElements)
      Deprecated.
      Specified by:
      validateEnabled in class ComboBoxValidator
    • isPresent

      public boolean isPresent​(int maxIterationsToLocateElements)
      Specified by:
      isPresent in class UIObjectValidator
    • isVisible

      public boolean isVisible​(int maxIterationsToLocateElements)
      Specified by:
      isVisible in class UIObjectValidator
    • click

      public void click​(int maxIterationsToLocateElements)
      Specified by:
      click in class UIObjectValidator
    • click

      public void click​(ImageSection imageSection, int maxIterationsToLocateElements)
    • doubleClick

      public void doubleClick​(int maxIterationsToLocateElements)
      Specified by:
      doubleClick in class UIObjectValidator
    • doubleClick

      public void doubleClick​(ImageSection imageSection, int maxIterationsToLocateElements)
    • rightClick

      public void rightClick​(int maxIterationsToLocateElements)
      Specified by:
      rightClick in class UIObjectValidator
    • rightClick

      public void rightClick​(ImageSection imageSection, int maxIterationsToLocateElements)
    • clickAndHold

      public void clickAndHold​(int maxIterationsToLocateElements)
      Specified by:
      clickAndHold in class UIObjectValidator
    • release

      public void release​(int maxIterationsToLocateElements)
      Specified by:
      release in class UIObjectValidator
    • performKeyDown

      public void performKeyDown​(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)
      Specified by:
      performKeyDown in class UIObjectValidator
    • performKeyUp

      public void performKeyUp​(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)
      Specified by:
      performKeyUp in class UIObjectValidator
    • performKeyPressed

      public void performKeyPressed​(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)
      Specified by:
      performKeyPressed in class UIObjectValidator
    • typeText

      public void typeText​(String text, NewTextLocation location, int maxIterationsToLocateElements)
      Specified by:
      typeText in class UIObjectValidator
    • scrollElementOnViewport

      public ComboBoxValidatorSI scrollElementOnViewport​(Scrollbar scrollbar)
      Specified by:
      scrollElementOnViewport in class UIObjectValidator
    • findElement

      public org.sikuli.script.Match findElement​(int maxIterationsToLocateElements)
      Specified by:
      findElement in class UIObjectValidator
    • findElementNoException

      public org.sikuli.script.Match findElementNoException​(int maxIterationsToLocateElements)
      Specified by:
      findElementNoException in class UIObjectValidator
    • findElements

      public List<org.sikuli.script.Match> findElements​(int maxIterationsToLocateElements)
      Specified by:
      findElements in class UIObjectValidator
    • dragAndDrop

      public void dragAndDrop​(ImageObject target, org.sikuli.script.Region targetRegion, int maxIterationsToLocateElements)
    • getImageSection

      protected org.sikuli.script.Location getImageSection​(org.sikuli.script.Match imageMatch, ImageSection imageSection)
    • validateSelectedItem

      public void validateSelectedItem​(String expectedValue, TextMatchMechanism validationMechanism, int maxIterationsToLocateElements)
      Specified by:
      validateSelectedItem in class ComboBoxValidator
    • getSelectedItem

      public String getSelectedItem​(int maxIterationsToLocateElements)
      Used to return value using clipboard method.
      Specified by:
      getSelectedItem in class ComboBoxValidator
    • getSelectedItems

      public List<String> getSelectedItems​(int maxIterationsToLocateElements)
      Specified by:
      getSelectedItems in class ComboBoxValidator
    • selectFirstItem

      public void selectFirstItem​(int maxIterationsToLocateElements)
      Specified by:
      selectFirstItem in class ComboBoxValidator
    • selectLastItem

      public void selectLastItem​(int maxIterationsToLocateElements)
      Specified by:
      selectLastItem in class ComboBoxValidator
    • selectItem

      public void selectItem​(String itemName, int maxIterationsToLocateElements)
      It just search the text in pull down menu visible area if present then click on it to select that.
      Specified by:
      selectItem in class ComboBoxValidator
    • selectItemByImage

      public void selectItemByImage​(String imageItem, int maxIterationsToLocateElements)
      It just search the image item in pull down menu visible area if present then click on it to select that.
    • calculatePullDownMenuRegion

      protected org.sikuli.script.Region calculatePullDownMenuRegion​(org.sikuli.script.Match match)
    • selectItems

      public void selectItems​(ItemList<String> itemsToBeSelected, int maxIterationsToLocateElements)
      It selects only the visible item in the pull down menu.
      Specified by:
      selectItems in class ComboBoxValidator
    • selectItemsByImage

      public void selectItemsByImage​(ItemList<String> imageItemsToBeSelected, int maxIterationsToLocateElements)
      It selects only the visible image items in the pull down menu.
    • validateItemsPresent

      public void validateItemsPresent​(ItemList<String> items, int maxIterationsToLocateElements)
      It only checks the item in visible area of pull down menu.
      Specified by:
      validateItemsPresent in class ComboBoxValidator
    • validateItemsPresentByImage

      public void validateItemsPresentByImage​(ItemList<String> imageItems, int maxIterationsToLocateElements)
      It only checks the image items in visible area of pull down menu.
    • validateItemsNotPresent

      public void validateItemsNotPresent​(ItemList<String> items, int maxIterationsToLocateElements)
      Specified by:
      validateItemsNotPresent in class ComboBoxValidator
    • validateItemsNotPresentByImage

      public void validateItemsNotPresentByImage​(ItemList<String> imageItems, int maxIterationsToLocateElements)
    • isDisabled

      @Deprecated public boolean isDisabled​(int maxIterationsToLocateElements)
      Deprecated.
      Specified by:
      isDisabled in class ComboBoxValidator
    • getNewSeleniumActions

      @Deprecated public org.openqa.selenium.interactions.Actions getNewSeleniumActions()
      Deprecated.
      Specified by:
      getNewSeleniumActions in class UIObjectValidator
    • isDisabledButNotReadonly

      public boolean isDisabledButNotReadonly​(int maxIterationsToLocateElements)
      Specified by:
      isDisabledButNotReadonly in class ComboBoxValidator
    • validateDisabledButNotReadonly

      public void validateDisabledButNotReadonly​(int maxIterationsToLocateElements)
      Specified by:
      validateDisabledButNotReadonly in class ComboBoxValidator
    • validateEnabledButNotReadonly

      public void validateEnabledButNotReadonly​(int maxIterationsToLocateElements)
      Specified by:
      validateEnabledButNotReadonly in class ComboBoxValidator