Class ListBoxValidatorSI
- java.lang.Object
-
- org.uitnet.testing.smartfwk.ui.core.objects.UIObjectValidator
-
- org.uitnet.testing.smartfwk.ui.core.objects.listbox.ListBoxValidator
-
- org.uitnet.testing.smartfwk.ui.standard.imgobj.ListBoxValidatorSI
-
public class ListBoxValidatorSI extends ListBoxValidator
- Author:
- Madhav Krishna
-
-
Field Summary
Fields Modifier and Type Field Description protected ListBoxSIlistBoxObj-
Fields inherited from class org.uitnet.testing.smartfwk.ui.core.objects.UIObjectValidator
appDriver, region, uiObject
-
-
Constructor Summary
Constructors Constructor Description ListBoxValidatorSI(SmartAppDriver appDriver, ListBoxSI uiObject, org.sikuli.script.Region region)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ListBoxValidatorSIclick(int maxIterationsToLocateElements)ListBoxValidatorSIclick(ImageSection imageSection, int maxIterationsToLocateElements)ListBoxValidatorSIclickAndHold(int maxIterationsToLocateElements)ListBoxValidatorSIdoubleClick(int maxIterationsToLocateElements)ListBoxValidatorSIdoubleClick(ImageSection imageSection, int maxIterationsToLocateElements)ListBoxValidatorSIdragAndDrop(ImageObject target, org.sikuli.script.Region targetRegion, int maxIterationsToLocateElements)org.sikuli.script.MatchfindElement(int maxIterationsToLocateElements)org.sikuli.script.MatchfindElementNoException(int maxIterationsToLocateElements)List<org.sikuli.script.Match>findElements(int maxIterationsToLocateElements)protected org.sikuli.script.LocationgetImageSection(org.sikuli.script.Match imageMatch, ImageSection imageSection)org.openqa.selenium.interactions.ActionsgetNewSeleniumActions()Deprecated.StringgetSelectedItem(int maxIterationsToLocateElements)Used to return value using clipboard method.List<String>getSelectedItems(int maxIterationsToLocateElements)booleanisDisabled(int maxIterationsToLocateElements)Deprecated.booleanisDisabledButNotReadonly(int maxIterationsToLocateElements)booleanisPresent(int maxIterationsToLocateElements)booleanisVisible(int maxIterationsToLocateElements)ListBoxValidatorSIperformKeyDown(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)ListBoxValidatorSIperformKeyPressed(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)ListBoxValidatorSIperformKeyUp(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)ListBoxValidatorSIrelease(int maxIterationsToLocateElements)ListBoxValidatorSIrightClick(int maxIterationsToLocateElements)ListBoxValidatorSIrightClick(ImageSection imageSection, int maxIterationsToLocateElements)ListBoxValidatorSIscrollElementOnViewport(Scrollbar scrollbar)ListBoxValidatorSIselectFirstItem(int maxIterationsToLocateElements)ListBoxValidatorSIselectItem(String itemName, int maxIterationsToLocateElements)It just search the text in pull down menu visible area if present then click on it to select that.ListBoxValidatorSIselectItemByImage(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.ListBoxValidatorSIselectItems(ItemList<String> itemsToBeSelected, int maxIterationsToLocateElements)It selects only the visible item in the pull down menu.ListBoxValidatorSIselectItemsByImage(ItemList<String> imageItemsToBeSelected, int maxIterationsToLocateElements)It selects only the visible image items in the pull down menu.ListBoxValidatorSIselectLastItem(int maxIterationsToLocateElements)ListBoxValidatorSItypeText(String text, NewTextLocation location, int maxIterationsToLocateElements)ListBoxValidatorSIvalidateDisabled(int maxIterationsToLocateElements)Deprecated.ListBoxValidatorSIvalidateDisabledButNotReadonly(int maxIterationsToLocateElements)ListBoxValidatorSIvalidateEnabled(int maxIterationsToLocateElements)Deprecated.ListBoxValidatorSIvalidateEnabledButNotReadonly(int maxIterationsToLocateElements)ListBoxValidatorSIvalidateItemsNotPresent(ItemList<String> items, int maxIterationsToLocateElements)ListBoxValidatorSIvalidateItemsNotPresentByImage(ItemList<String> imageItems, int maxIterationsToLocateElements)ListBoxValidatorSIvalidateItemsPresent(ItemList<String> items, int maxIterationsToLocateElements)It only checks the item in visible area of pull down menu.ListBoxValidatorSIvalidateItemsPresentByImage(ItemList<String> imageItems, int maxIterationsToLocateElements)It only checks the image items in visible area of pull down menu.ListBoxValidatorSIvalidateSelectedItem(String expectedValue, TextMatchMechanism validationMechanism, int maxIterationsToLocateElements)-
Methods inherited from class org.uitnet.testing.smartfwk.ui.core.objects.listbox.ListBoxValidator
getUIObject
-
Methods inherited from class org.uitnet.testing.smartfwk.ui.core.objects.UIObjectValidator
getRegion, geUIObjectType, matchTextValue, performAction, seleniumToSikuliKeyConverter, validateHidden, validateNotPresent, validateNotVisible, validatePresent, validateTextValue, validateVisible
-
-
-
-
Field Detail
-
listBoxObj
protected ListBoxSI listBoxObj
-
-
Constructor Detail
-
ListBoxValidatorSI
public ListBoxValidatorSI(SmartAppDriver appDriver, ListBoxSI uiObject, org.sikuli.script.Region region)
-
-
Method Detail
-
validateDisabled
@Deprecated public ListBoxValidatorSI validateDisabled(int maxIterationsToLocateElements)
Deprecated.- Specified by:
validateDisabledin classListBoxValidator
-
validateEnabled
@Deprecated public ListBoxValidatorSI validateEnabled(int maxIterationsToLocateElements)
Deprecated.- Specified by:
validateEnabledin classListBoxValidator
-
isPresent
public boolean isPresent(int maxIterationsToLocateElements)
- Specified by:
isPresentin classUIObjectValidator
-
isVisible
public boolean isVisible(int maxIterationsToLocateElements)
- Specified by:
isVisiblein classUIObjectValidator
-
click
public ListBoxValidatorSI click(int maxIterationsToLocateElements)
- Specified by:
clickin classUIObjectValidator
-
click
public ListBoxValidatorSI click(ImageSection imageSection, int maxIterationsToLocateElements)
-
doubleClick
public ListBoxValidatorSI doubleClick(int maxIterationsToLocateElements)
- Specified by:
doubleClickin classUIObjectValidator
-
doubleClick
public ListBoxValidatorSI doubleClick(ImageSection imageSection, int maxIterationsToLocateElements)
-
rightClick
public ListBoxValidatorSI rightClick(int maxIterationsToLocateElements)
- Specified by:
rightClickin classUIObjectValidator
-
rightClick
public ListBoxValidatorSI rightClick(ImageSection imageSection, int maxIterationsToLocateElements)
-
clickAndHold
public ListBoxValidatorSI clickAndHold(int maxIterationsToLocateElements)
- Specified by:
clickAndHoldin classUIObjectValidator
-
release
public ListBoxValidatorSI release(int maxIterationsToLocateElements)
- Specified by:
releasein classUIObjectValidator
-
performKeyDown
public ListBoxValidatorSI performKeyDown(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)
- Specified by:
performKeyDownin classUIObjectValidator
-
performKeyUp
public ListBoxValidatorSI performKeyUp(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)
- Specified by:
performKeyUpin classUIObjectValidator
-
performKeyPressed
public ListBoxValidatorSI performKeyPressed(org.openqa.selenium.Keys keys, int maxIterationsToLocateElements)
- Specified by:
performKeyPressedin classUIObjectValidator
-
typeText
public ListBoxValidatorSI typeText(String text, NewTextLocation location, int maxIterationsToLocateElements)
- Specified by:
typeTextin classUIObjectValidator
-
scrollElementOnViewport
public ListBoxValidatorSI scrollElementOnViewport(Scrollbar scrollbar)
- Specified by:
scrollElementOnViewportin classUIObjectValidator
-
findElement
public org.sikuli.script.Match findElement(int maxIterationsToLocateElements)
- Specified by:
findElementin classUIObjectValidator
-
findElementNoException
public org.sikuli.script.Match findElementNoException(int maxIterationsToLocateElements)
- Specified by:
findElementNoExceptionin classUIObjectValidator
-
findElements
public List<org.sikuli.script.Match> findElements(int maxIterationsToLocateElements)
- Specified by:
findElementsin classUIObjectValidator
-
dragAndDrop
public ListBoxValidatorSI 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 ListBoxValidatorSI validateSelectedItem(String expectedValue, TextMatchMechanism validationMechanism, int maxIterationsToLocateElements)
- Specified by:
validateSelectedItemin classListBoxValidator
-
getSelectedItem
public String getSelectedItem(int maxIterationsToLocateElements)
Used to return value using clipboard method.- Specified by:
getSelectedItemin classListBoxValidator
-
getSelectedItems
public List<String> getSelectedItems(int maxIterationsToLocateElements)
- Specified by:
getSelectedItemsin classListBoxValidator
-
selectFirstItem
public ListBoxValidatorSI selectFirstItem(int maxIterationsToLocateElements)
- Specified by:
selectFirstItemin classListBoxValidator
-
selectLastItem
public ListBoxValidatorSI selectLastItem(int maxIterationsToLocateElements)
- Specified by:
selectLastItemin classListBoxValidator
-
selectItem
public ListBoxValidatorSI 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:
selectItemin classListBoxValidator
-
selectItemByImage
public ListBoxValidatorSI 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.
-
selectItems
public ListBoxValidatorSI selectItems(ItemList<String> itemsToBeSelected, int maxIterationsToLocateElements)
It selects only the visible item in the pull down menu.- Specified by:
selectItemsin classListBoxValidator
-
selectItemsByImage
public ListBoxValidatorSI selectItemsByImage(ItemList<String> imageItemsToBeSelected, int maxIterationsToLocateElements)
It selects only the visible image items in the pull down menu.
-
validateItemsPresent
public ListBoxValidatorSI validateItemsPresent(ItemList<String> items, int maxIterationsToLocateElements)
It only checks the item in visible area of pull down menu.- Specified by:
validateItemsPresentin classListBoxValidator
-
validateItemsPresentByImage
public ListBoxValidatorSI validateItemsPresentByImage(ItemList<String> imageItems, int maxIterationsToLocateElements)
It only checks the image items in visible area of pull down menu.
-
validateItemsNotPresent
public ListBoxValidatorSI validateItemsNotPresent(ItemList<String> items, int maxIterationsToLocateElements)
- Specified by:
validateItemsNotPresentin classListBoxValidator
-
validateItemsNotPresentByImage
public ListBoxValidatorSI validateItemsNotPresentByImage(ItemList<String> imageItems, int maxIterationsToLocateElements)
-
isDisabled
@Deprecated public boolean isDisabled(int maxIterationsToLocateElements)
Deprecated.- Specified by:
isDisabledin classListBoxValidator
-
getNewSeleniumActions
@Deprecated public org.openqa.selenium.interactions.Actions getNewSeleniumActions()
Deprecated.- Specified by:
getNewSeleniumActionsin classUIObjectValidator
-
isDisabledButNotReadonly
public boolean isDisabledButNotReadonly(int maxIterationsToLocateElements)
- Specified by:
isDisabledButNotReadonlyin classListBoxValidator
-
validateDisabledButNotReadonly
public ListBoxValidatorSI validateDisabledButNotReadonly(int maxIterationsToLocateElements)
- Specified by:
validateDisabledButNotReadonlyin classListBoxValidator
-
validateEnabledButNotReadonly
public ListBoxValidatorSI validateEnabledButNotReadonly(int maxIterationsToLocateElements)
- Specified by:
validateEnabledButNotReadonlyin classListBoxValidator
-
-