Uses of Class
core.uiCore.webElement.EnhancedBy
Packages that use EnhancedBy
Package
Description
-
Uses of EnhancedBy in core.helpers
Methods in core.helpers that return EnhancedByModifier and TypeMethodDescriptionstatic EnhancedByElement.byAccessibility(String element, String name) gets element by accessibility idstatic EnhancedByHelper.byAccessibility(String element, String name) gets element by accessibility idstatic EnhancedBygets element by class namestatic EnhancedBygets element by css valuestatic EnhancedBygets element by css valuestatic EnhancedBygets element by idstatic EnhancedBygets element by idstatic EnhancedByElement.byLinkText(String element, String name) gets element by link textstatic EnhancedByget element by namestatic EnhancedByElement.byPartialLinkText(String element, String name) gets element by partial link textstatic EnhancedBygets element by tag namestatic EnhancedByElement.byTextXpath(String element, String name) static EnhancedBygets element by xpathstatic EnhancedBygets element by xpathstatic EnhancedByElement.byXpathContentDesc(String element, String name) gets element by class (for mobile)Methods in core.helpers with parameters of type EnhancedByModifier and TypeMethodDescriptionstatic FileUtilityHelper.captureElementPicture(EnhancedBy element) Gets a picture of specific element displayed on the pagestatic FileUtilityHelper.captureElementPicture(EnhancedBy element, int index) Gets a picture of specific element displayed on the pagevoidFormHelper.clearAndSetField(EnhancedBy field, int index, CharSequence... value) clear and sets fieldvoidFormHelper.clearAndSetField(EnhancedBy field, CharSequence... value) clears and set fieldstatic voidHelper.clearAndSetField(EnhancedBy field, int index, CharSequence... value) sets field clears field before setting the valuestatic voidHelper.clearAndSetField(EnhancedBy field, CharSequence... value) sets field clears field before setting the valuevoidFormHelper.clearField(EnhancedBy field, int index) use multiple strategies to clear the filed 1.voidHelper.click(EnhancedBy target, int index) click without waitingstatic voidHelper.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected) clicks element based on index And waits for expected element to be displayedstatic voidHelper.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected1, EnhancedBy expected2) clicks target And wait for one the 2 expected elements to appearstatic voidHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected) clicks target And waits for expected element to display retries 10 timesstatic voidHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected, boolean isMobileRefresh) clicks target And waits for expected element to display retries 10 timesstatic voidHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected, EnhancedBy spinner) clicks target And waits for expected element to show up also waits for spinner element to be removed from displaystatic voidHelper.clickAndExpect(EnhancedBy target, String text, EnhancedBy expected) click And expect based on the text value on the element.voidHelper.clickAndExpectContainsByText(EnhancedBy target, String text, EnhancedBy expected) click And expect based on the text value on the element.static voidHelper.clickAndHold(EnhancedBy target, double seconds) click And hold elementstatic voidHelper.clickAndHold(EnhancedBy target, int index, double seconds) click And hold based on element indexstatic voidHelper.clickAndNotExpect(EnhancedBy target, int index, EnhancedBy expected) static voidHelper.clickAndNotExpect(EnhancedBy target, EnhancedBy expected) clicks target And waits for expected to not be displayed retries 10 timesstatic voidHelper.clickAndWait(EnhancedBy target, double timeInSeconds) clicks target And waits for secondsstatic voidHelper.clickAndWait(EnhancedBy target, int index, double timeInSeconds) clicks target And waits for secondsstatic voidHelper.clickElementContinsByText(EnhancedBy by, String text) click element with text containingstatic voidHelper.clickElementLocationBy(EnhancedBy by, int x, int y) Click on an element's specific x,y locationstatic voidHelper.clickPointsAndExpect(int x, int y, EnhancedBy expected) click point at x,y coordinates and expect and element to be present retry every 5 seconds for duration of explicit timeoutstatic voidHelper.doubleClick(EnhancedBy target, int index) double click on elementstatic voidElementActionHelper.doubleClickBy(EnhancedBy by) static voidHelper.doubleClickBy(EnhancedBy by) static voidHelper.dragAndDrop(EnhancedBy src, int xOffset, int yOffset) drag And drop from src element to target elementvoidHelper.dragAndDrop(EnhancedBy srcParent, int srcParentIndex, EnhancedBy srcChild, int scrChildIndex, EnhancedBy targetParent, int targeParenttIndex, EnhancedBy targetChild, int targetChildIndex) drag And drop from src element to target elementstatic voidHelper.dragAndDrop(EnhancedBy src, EnhancedBy target) drag And drop from src element to target elementstatic int[]Helper.findElementCoordinates(EnhancedBy target) returns the center coordinates of the target elementprotected static EnhancedWebElementElement.findElements(EnhancedBy element) finds list of elementsprotected static EnhancedWebElementElement.findElements(EnhancedBy parent, int parentIndex, EnhancedBy child) finds a list of elements based on parent elementprotected static EnhancedWebElementElement.findElements(EnhancedBy parent, EnhancedBy child) protected static EnhancedWebElementHelper.findElements(EnhancedBy element) finds list of elementsprotected static EnhancedWebElementHelper.findElements(EnhancedBy parent, int parentIndex, EnhancedBy child) finds a list of elements based on parent elementprotected static EnhancedWebElementHelper.findElements(EnhancedBy parent, EnhancedBy child) finds element based on parent elementstatic int[]ElementHelper.findMiddleOfElement(EnhancedBy target) returns the center coordinates of the target elementstatic int[]Helper.findMiddleOfElement(EnhancedBy target) returns the center coordinates of the target elementvoidFormHelper.formSubmit(EnhancedBy button, EnhancedBy expected) select submit button and wait for expected element to loadvoidFormHelper.formSubmit(EnhancedBy button, EnhancedBy expected, EnhancedBy spinner) clicks submit button, wait for element to appear And loading spinner to be removedstatic voidHelper.formSubmit(EnhancedBy button, EnhancedBy expected) select submit button And wait for expected element to loadstatic voidHelper.formSubmit(EnhancedBy button, EnhancedBy expected, EnhancedBy spinner) clicks submit button, wait for element to appear And loading spinner to be removedvoidFormHelper.formSubmitNoRetry(EnhancedBy button, int index, EnhancedBy expected) submit form with retrying selecting the elementvoidFormHelper.formSubmitNoRetry(EnhancedBy button, EnhancedBy expected) submit form with retrying selecting the elementstatic StringElementHelper.getAttribute(EnhancedBy byValue, int index, String attribute) gets specified attribute of the element based on indexstatic StringElementHelper.getAttribute(EnhancedBy byValue, String attribute) gets specified attribute of the elementstatic StringHelper.getAttribute(EnhancedBy byValue, int index, String attribute) gets specified attribute of the element based on indexstatic StringHelper.getAttribute(EnhancedBy byValue, String attribute) gets specified attribute of the elementstatic intHelper.getElementIndexContainByText(EnhancedBy listValue, String option) retuns index of element in list which contains in textintListHelper.getElementIndexContainByText(EnhancedBy list, String option) returns index of element in list which contains in textstatic intHelper.getElementIndexEqualsByText(EnhancedBy listValue, String option) returns the index of text value in a listintListHelper.getElementIndexEqualsByText(EnhancedBy list, String option) returns the index of text value in a list normalizes the list option When comparing using Helper.stringNormalize() returns first visible element indexintListHelper.getElementIndexEqualsByTextWithoutRetry(EnhancedBy list, String option) static intHelper.getElementIndexInList(EnhancedBy srcList, EnhancedBy target) find the index of the target element in list eg.intListHelper.getElementIndexInList(EnhancedBy list, EnhancedBy target) find the index of the target element in list eg.static org.openqa.selenium.PointElementHelper.getElementPosition(EnhancedBy by) get element position on displaystatic org.openqa.selenium.PointElementHelper.getElementPosition(EnhancedBy by, int index) get element position on displaystatic org.openqa.selenium.PointHelper.getElementPosition(EnhancedBy by) get element position on displaystatic org.openqa.selenium.PointHelper.getElementPosition(EnhancedBy by, int index) get element position on displaystatic org.openqa.selenium.DimensionElementHelper.getElementSize(EnhancedBy by) returns element dimensionstatic org.openqa.selenium.DimensionHelper.getElementSize(EnhancedBy by) returns element dimensionstatic intHelper.getListCount(EnhancedBy listValue) returns the number of elements in listintListHelper.getListCount(EnhancedBy list) returns the number of elements in listHelper.getListValues(EnhancedBy listValue) returns the list of values in a listListHelper.getListValues(EnhancedBy list) returns the list of values in a listHelper.getRowValuesFromList(EnhancedBy srclist, int index, EnhancedBy rows) returns the list of string values for a row of elementsListHelper.getRowValuesFromList(EnhancedBy list, int index, EnhancedBy cells) returns the list of string values for a row of elementsintListHelper.getStringIndexContainByText(EnhancedBy list, List<String> stringList, String option) returns the index of string value in list of stringsintListHelper.getStringIndexEqualsByText(EnhancedBy list, List<String> stringList, String option) returns the index of string value in list of stringsHelper.getTableMap(EnhancedBy columns, int columnInitialIndex, EnhancedBy dataRows, int rowInitialIndex, EnhancedBy dataCells, int maxRows) gets hashmap representation of data column with row valuesHelper.getTableMap(EnhancedBy columns, EnhancedBy dataRows, EnhancedBy dataCells) gets hashmap representation of data column with row valuesHelper.getTableMap(EnhancedBy columns, EnhancedBy dataRows, EnhancedBy dataCells, int maxRows) gets hashmap representation of data column with row valuesListHelper.getTableMap(EnhancedBy columns, int columnInitialIndex, EnhancedBy dataRows, int rowInitialIndex, EnhancedBy dataCells, int maxRows) gets hashmap representation of data column with row valuesListHelper.getTableMap(EnhancedBy columns, EnhancedBy dataRows, EnhancedBy dataCells) gets hashmap representation of data column with row valuesListHelper.getTableMap(EnhancedBy columns, EnhancedBy dataRows, EnhancedBy dataCells, int maxRows) gets hashmap representation of data column with row valuesListHelper.getTableRowValues(EnhancedBy dataRows, EnhancedBy dataCells) gets hashmap of table rows map will return row index and row values as arraylistListHelper.getTableRowValues(EnhancedBy dataRows, EnhancedBy dataCells, int maxRows) gets hashmap of table rows map will return row index and row values as arraylistImageProcessingHelper.getTextFromElementImage(EnhancedBy element) get text from image element screenshot take of the element, Then Tesseract is used to grab the string from the image image path base from resource folder using Tesseract libraryHelper.getTextList(EnhancedBy listValue) returns the list of values in a listListHelper.getTextList(EnhancedBy list) get list of text valuesFormHelper.getTextValue(EnhancedBy element) gets the text value from an elementFormHelper.getTextValue(EnhancedBy element, int index) gets the text value from an elementstatic StringHelper.getTextValue(EnhancedBy element) gets the text value from an elementstatic StringHelper.getTextValue(EnhancedBy element, int index) gets the text value from an elementintListHelper.getVisibleElementIndex(EnhancedBy list, List<Integer> indexValues) static voidHelper.highLightWebElement(EnhancedBy by, int index) highlights the web element use on clicks and send key elementsstatic voidUtilityHelper.highLightWebElement(EnhancedBy by, int index) highlights the web element use on clicks and send key elements applicable to web driverstatic voidElementActionHelper.hoverBy(EnhancedBy by, int index) hover over elementstatic voidHelper.hoverBy(EnhancedBy by) hover over elementstatic voidHelper.hoverBy(EnhancedBy by, int index) hover over elementstatic voidElementActionHelper.inputTextByAction(EnhancedBy by, String text) voidHelper.inputTextByAction(EnhancedBy by, String text) static booleanElementHelper.isAttributeContaining(EnhancedBy by, String attribute, String value) returns true if element contains class valuestatic booleanHelper.isAttributeContaining(EnhancedBy by, String attribute, String value) returns true if element contains attribute valuestatic booleanHelper.isContainedInList(EnhancedBy listValue, String option) return if element is contained in listbooleanListHelper.isContainedInList(EnhancedBy list, String option) return if element is contained in listbooleanVerifyHelper.isContainedInList(EnhancedBy list, String option) return if element is contained in liststatic booleanHelper.isDisplayed(EnhancedBy element) returns true if element is displayedstatic booleanElementHelper.isElementContainingClass(EnhancedBy by, String value) static booleanHelper.isElementContainingClass(EnhancedBy by, String classValue) returns true if element contains class valuestatic booleanHelper.isElementContainingText(EnhancedBy element, String text) returns true if element contains textbooleanVerifyHelper.isElementContainingText(EnhancedBy element, String text) returns true if element contains textbooleanFormHelper.isElementEditable(EnhancedBy element) attempts to set text value on element, if not successful, then element is not editablebooleanFormHelper.isElementEditable(EnhancedBy element, int index) attempts to set text value on element, if not successful, then element is not editablebooleanHelper.isElementEditable(EnhancedBy element) attempts to set text value on element, if not successful, then element is not editablebooleanHelper.isElementEditable(EnhancedBy element, int index) attempts to set text value on element, if not successful, then element is not editablebooleanVerifyHelper.isElementHasExactText(EnhancedBy element, int index, String text) returns true if element has exact text valuebooleanVerifyHelper.isElementInList(EnhancedBy list, EnhancedBy target) return true if element is in list of elements.booleanVerifyHelper.isElementInList(EnhancedBy list, String option, EnhancedBy target) return true if element is in list of elements.static booleanHelper.isExactMatchInList(EnhancedBy listValue, String option) return if element is an exact match in listbooleanListHelper.isExactMatchInList(EnhancedBy list, String option) return if element is an exact match in listbooleanVerifyHelper.isExactMatchInList(EnhancedBy list, String option) return if element is an exact match in liststatic booleanHelper.isPresent(EnhancedBy element) returns true if element is displayedbooleanVerifyHelper.isPresent(EnhancedBy element) returns true if element is displayedstatic BooleanHelper.isVisibleInViewport(EnhancedBy by) returns true if the element is visible in the current page only for web applicationsstatic BooleanHelper.isVisibleInViewport(EnhancedBy by, int index) returns true if the element is visible in the current page only for web applicationsPageHelper.isVisibleInViewport(EnhancedBy by) returns true if the element is visible in the current page only for web applicationsPageHelper.isVisibleInViewport(EnhancedBy by, int index) returns true if the element is visible in the current page only for web applicationsvoidMobileHelper.longPress(EnhancedBy target, long miliSeconds) TODO: enhance to become longpress And expect presses the target elementstatic voidHelper.mobile_longPress(EnhancedBy target, long miliSeconds) press per retry presses the target elementvoidMobileHelper.mobile_longPress(EnhancedBy target, long miliSeconds) static voidHelper.mobile_longPressAndExpect(EnhancedBy target, long miliSeconds, EnhancedBy expected) long press And expect elementvoidMobileHelper.mobile_longPressAndExpect(EnhancedBy target, long miliSeconds, EnhancedBy expected) long press And expect elementstatic voidHelper.mobile_scrollToElement(EnhancedBy target) scrolls to mobile element until element is becomes visiblevoidMobileHelper.mobile_scrollToElement(EnhancedBy target) scrolls to mobile element until element becomes visiblevoidMobileHelper.mobile_scrollToElementWithRefresh(EnhancedBy target) voidHelper.mobile_swipeDown(EnhancedBy element, int index, double durationInSeconds) swipe down on the screen based on element positionvoidMobileHelper.mobile_swipeDown(EnhancedBy element, int index, double durationInSeconds) swipe down on the screenvoidHelper.mobile_swipeLeft(EnhancedBy element, int index, double durationInSeconds) swipe left on the screen based on element positionvoidMobileHelper.mobile_swipeLeft(EnhancedBy element, int index, double durationInSeconds) swipe left on the screenvoidHelper.mobile_swipeRight(EnhancedBy element, int index, double durationInSeconds) swipe right on the screen based on element positionvoidMobileHelper.mobile_swipeRight(EnhancedBy element, int index, double durationInSeconds) swipe right on the screenvoidHelper.mobile_swipeUp(EnhancedBy element, int index, double durationInSeconds) swipe up on the screen based on element positionvoidMobileHelper.mobile_swipeUp(EnhancedBy element, int index, double durationInSeconds) swipe up on the screenstatic voidHelper.mobile_waitAndRefreshForElementToLoad(EnhancedBy target) waits for element to load And refreshes the app each time to renew the domstatic voidHelper.mobile_waitAndRefreshForElementToLoad(EnhancedBy target, int time) waits for element to load And refreshes the app each time to renew the domvoidWaitHelper.mobile_waitAndRefreshForElementToLoad(EnhancedBy target) waits for element to load And refreshes the app each time to renew the domvoidWaitHelper.mobile_waitAndRefreshForElementToLoad(EnhancedBy target, int time) waits for element to load And refreshes the app each time to renew the domstatic voidHelper.mobile_zoomIn(EnhancedBy indicator) zooms in And checks if target level indicator has been reachedvoidMobileHelper.mobile_zoomIn(EnhancedBy indicator) zooms in And checks if target level indicator has been reachedstatic voidHelper.mobile_zoomOut(EnhancedBy indicator) zooms out And checks if target level indicator has been reachedvoidMobileHelper.mobile_zoomOut(EnhancedBy indicator) zooms out And checks if target level indicator has been reachedstatic voidElementActionHelper.moveToElement(EnhancedBy target, int index) move to element by using actionstatic voidElementActionHelper.moveToElement(EnhancedBy target, int index, int xOffset, int yOffset) move to element by using actionstatic voidHelper.moveToElement(EnhancedBy target, int index) move to element by using actionstatic voidHelper.moveToElement(EnhancedBy target, int index, int xOffset, int yOffset) move to element by using actionvoidFormHelper.pressEnterOnWeb(EnhancedBy field) static voidHelper.rightClick(EnhancedBy target, int index) right click on element at indexstatic voidHelper.scrollToWebElement(EnhancedBy element) scroll to web elementstatic voidHelper.scrollToWebElement(EnhancedBy element, int index) scroll to elementvoidPageHelper.scrollToWebElement(EnhancedBy element) scroll to web elementvoidPageHelper.scrollToWebElement(EnhancedBy element, int index) scroll to elementstatic voidHelper.searchAndWaitForResults(String searchQuery, EnhancedBy byTarget, EnhancedBy spinner) enters value into the search field And selects enter waits for the loading spinner to be removedvoidListHelper.searchAndWaitForResults(String searchQuery, EnhancedBy byTarget, EnhancedBy spinner) enters value into the search field And selects enter waits for the loading spinner to be removedvoidFormHelper.selectCheckBox(EnhancedBy button, boolean isSelect) selects checkbox based on by valuestatic voidHelper.selectCheckBox(EnhancedBy button, boolean isSelect) selects checkbox based on by valuevoidFormHelper.selectDropDown(int index, EnhancedBy field, EnhancedBy list) select drop down by index from the drop down listvoidFormHelper.selectDropDown(EnhancedBy field, int index) selects drop downvoidFormHelper.selectDropDown(EnhancedBy field, int index, EnhancedBy list, int optionIndex) select drop down field based on index select option field based on indexvoidFormHelper.selectDropDown(EnhancedBy field, int index, EnhancedBy list, String option) select drop down field based on index select option field based on textvoidFormHelper.selectDropDown(EnhancedBy field, EnhancedBy list) select drop down by index from the drop down listvoidFormHelper.selectDropDown(EnhancedBy field, EnhancedBy list, String... options) selects drop downvoidFormHelper.selectDropDown(EnhancedBy field, String... options) selects drop downvoidFormHelper.selectDropDown(String option, EnhancedBy field, int index, EnhancedBy list) selects drop down based on index of the drop down fieldvoidFormHelper.selectDropDown(String option, EnhancedBy field, int index, EnhancedBy list, int listIndex) select drop down based on index of the drop down list eg.voidFormHelper.selectDropDown(String option, EnhancedBy field, EnhancedBy list) Deprecated.replaced by selectDropDown(field, list, options) selects drop downvoidFormHelper.selectDropDown(String option, EnhancedBy field, EnhancedBy list, int listIndex) select drop down based on index of the drop down list eg.voidFormHelper.selectDropDown(String option, EnhancedBy field, String field_Identifier, EnhancedBy list) selects drop down from list defined by another list defined by textstatic voidHelper.selectDropDown(int index, EnhancedBy field, EnhancedBy listValue) select drop down by index from the drop down liststatic voidHelper.selectDropDown(EnhancedBy field, EnhancedBy item) select drop down using by value of the list itemstatic voidHelper.selectDropDown(EnhancedBy field, EnhancedBy list, String... options) selects drop downstatic voidHelper.selectDropDown(EnhancedBy field, String... options) selects drop downstatic voidHelper.selectDropDown(String option, EnhancedBy field, int index, EnhancedBy listValue) selects drop down based on index of the drop down fieldstatic voidHelper.selectDropDown(String option, EnhancedBy field, int index, EnhancedBy list, int listIndex) select drop down based on index of the drop down list eg.static voidHelper.selectDropDown(String option, EnhancedBy field, EnhancedBy listValue) Deprecated.replaced by selectDropDown(field, list, options) selects drop downstatic voidHelper.selectDropDown(String option, EnhancedBy field, EnhancedBy listValue, int listIndex) select drop down based on index of the drop down list eg.static voidHelper.selectDropDown(String option, EnhancedBy field, String field_Identifier, EnhancedBy listValue) selects drop down from list defined by another list defined by textvoidFormHelper.selectDropDownWithDoubleClick(String option, EnhancedBy field, int index, EnhancedBy list) selects dropdown by double clicking on the fieldvoidFormHelper.selectDropDownWithDoubleClick(String option, EnhancedBy field, EnhancedBy list) selects dropdown by double clicking on the fieldstatic voidHelper.selectDropDownWithDoubleClick(String option, EnhancedBy field, int index, EnhancedBy listValue) selects dropdown by double clicking on the fieldstatic voidHelper.selectDropDownWithDoubleClick(String option, EnhancedBy field, EnhancedBy listValue) selects dropdown by double clicking on the fieldstatic voidHelper.selectElementContainedInList(EnhancedBy listValue, String option, EnhancedBy target) Selects list item from a parent container eg.static voidHelper.selectElementContainedInList(EnhancedBy listValue, String option, EnhancedBy target, int targetIndex) Selects list item from a parent container eg.voidListHelper.selectElementContainedInList(EnhancedBy list, String option, EnhancedBy target) Selects list item from a parent container eg.voidListHelper.selectElementContainedInList(EnhancedBy list, String option, EnhancedBy target, int targetIndex) Selects list item from a parent container eg.static voidHelper.selectElementInList(EnhancedBy listValue, int index) selects an element in list by its index valuestatic voidHelper.selectElementInList(EnhancedBy listValue, int index, EnhancedBy expected) selects an element in list by its index value And waits for expected elementvoidListHelper.selectElementInList(EnhancedBy list, int index) selects an element in list by its index valuevoidListHelper.selectElementInList(EnhancedBy list, int index, EnhancedBy expected) selects an element in list by its index value And waits for expected elementstatic voidHelper.selectListItemByIndex(EnhancedBy listValue, int index) selects list item by the string option providedvoidListHelper.selectListItemByIndex(EnhancedBy list, int index) selects list item by the string option providedstatic voidHelper.selectListItemContainsByName(EnhancedBy listValue, String option) finds target element which is in the same container And has the same index as the parent eg.static voidHelper.selectListItemContainsByName(EnhancedBy listValue, String option, EnhancedBy target) selects list item containing string eg.voidListHelper.selectListItemContainsByName(EnhancedBy list, String option) finds target element which is in the same container And has the same index as the parent eg.voidListHelper.selectListItemContainsByName(EnhancedBy list, String option, EnhancedBy target) selects list item containing string eg.static voidHelper.selectListItemEqualsByName(EnhancedBy listValue, String option) selects list item by the string option providedstatic voidHelper.selectListItemEqualsByName(EnhancedBy listValue, String option, EnhancedBy target) finds target element which is in the same container And has the same index as the parent eg.voidListHelper.selectListItemEqualsByName(EnhancedBy list, String option) selects list item by the string option providedvoidListHelper.selectListItemEqualsByName(EnhancedBy list, String option, EnhancedBy target) finds target element which is in the same container And has the same index as the parent eg.voidFormHelper.selectMultipleCheckboxOptions(List<String> selections, EnhancedBy checkboxes) selects multiple checkbox optionsstatic voidHelper.selectMultipleCheckboxOptions(List<String> selections, EnhancedBy checkboxes) selects multiple checkbox optionsvoidFormHelper.selectRadioButton(EnhancedBy button) selects a buttonvoidFormHelper.selectRadioButton(String option, EnhancedBy buttons) selects radio button by radio button descriptionstatic voidHelper.selectRadioButton(EnhancedBy button) selects a buttonstatic voidHelper.selectRadioButton(String option, EnhancedBy buttons) selects radio button by radio button descriptionvoidFormHelper.selectToggle(EnhancedBy on, EnhancedBy off, boolean isOn) select toggle button, on or offstatic voidElementHelper.setAttribute(EnhancedBy by, int index, String attribute, String value) sets attribute value of an elementstatic voidElementHelper.setAttribute(EnhancedBy by, String attribute, String value) sets attribute value of an elementstatic voidHelper.setAttribute(EnhancedBy by, int index, String attribute, String value) sets attribute value of an elementstatic voidHelper.setAttribute(EnhancedBy by, String attribute, String value) sets attribute value of an elementstatic voidHelper.setChildField(EnhancedBy parent, int parentIndex, EnhancedBy child, int childIndex, CharSequence... value) sets key based on nested text fieldvoidFormHelper.setField(EnhancedBy field, int index, CharSequence... value) sets and clears field before setting the valuevoidFormHelper.setField(EnhancedBy field, CharSequence... value) sets field clears field before setting the valuevoidFormHelper.setField(String value, EnhancedBy field, int index) sets field text value by index hides keyboard if on ios devicestatic voidHelper.setField(EnhancedBy field, CharSequence... value) set field value if value is not emptystatic voidHelper.setField(String value, EnhancedBy field, int index) sets field text value by index hides keyboard if on ios devicevoidFormHelper.setFieldAndEnter(EnhancedBy field, CharSequence... value) sets field And presses the enter keystatic voidHelper.setFieldAndEnter(EnhancedBy field, CharSequence... value) sets field And presses the enter keyvoidFormHelper.setFieldByAction(EnhancedBy field, int index, CharSequence... value) sets and clears field before setting the value by actionsvoidFormHelper.setFieldByAction(EnhancedBy field, CharSequence... value) sets and clears field before setting the value by actionsstatic voidHelper.setFieldByAction(EnhancedBy field, int index, CharSequence... value) static voidHelper.setFieldByAction(EnhancedBy field, CharSequence... value) voidFormHelper.setFieldByJs(EnhancedBy field, int index, CharSequence... value) set field through javascriptvoidFormHelper.setFieldByJs(EnhancedBy field, CharSequence... value) set field through javascriptstatic voidHelper.setFieldByJs(EnhancedBy field, int index, CharSequence... value) static voidHelper.setFieldByJs(EnhancedBy field, CharSequence... value) voidFormHelper.setKey(org.openqa.selenium.Keys key, EnhancedBy field) sendstatic voidHelper.setKey(org.openqa.selenium.Keys key, EnhancedBy field) sendvoidFormHelper.setKeyChildField(EnhancedBy parent, int parentIndex, EnhancedBy child, int childIndex, CharSequence... value) sets key based on nested text fieldvoidMobileHelper.smartHideKeyboard(EnhancedBy element) if element is not visible, attempt to hide keyboardstatic voidHelper.switchIframe(EnhancedBy frame) switches frame to frame specifiedvoidPageHelper.switchIframe(EnhancedBy frame) switches frame to frame specifiedprotected static voidFileUploadHelper.uploadAndAcceptFile(String location, EnhancedBy fileButton, EnhancedBy accept) protected static voidFileUploadHelper.uploadFile(String location, EnhancedBy fileButton) uploads file by specifying file location relative to main pathvoidFormHelper.uploadFile(String location, EnhancedBy fileTypeElement) uploads file by specifying file location relative to main pathstatic voidHelper.uploadFile(String location, EnhancedBy imageButton) uploads file by specifying file location relative to main pathprotected static voidFileUploadHelper.uploadImage(String location, EnhancedBy imageButton, EnhancedBy images) sets the image based on locationvoidFormHelper.uploadImage(String location, EnhancedBy imageButton, EnhancedBy images) sets the image based on image pathstatic voidHelper.uploadImage(String location, EnhancedBy imageButton, EnhancedBy images) sets the image based on locationprotected static voidFileUploadHelper.uploadImages(List<String> locations, EnhancedBy imageButton, EnhancedBy images) voidFormHelper.uploadImages(List<String> locations, EnhancedBy imageButton, EnhancedBy images) * sets the image based on list of image pathstatic voidHelper.uploadImages(List<String> locations, EnhancedBy imageButton, EnhancedBy images) sets the image based on locationstatic voidHelper.verifyAnyText(EnhancedBy target, String... values) verifies if text contains any of values in listvoidVerifyHelper.verifyAnyText(EnhancedBy target, String... values) verifies if text contains any of values in liststatic voidHelper.verifyAnyTextContaining(EnhancedBy target, String... values) verifies if text contains any of values in listvoidVerifyHelper.verifyAnyTextContaining(EnhancedBy target, String... values) verifies if text contains any of values in liststatic voidHelper.verifyContainsIsInList(EnhancedBy listValue, String option) verifies if option value is in the list index = -1 indicates the value is not in listvoidListHelper.verifyContainsIsInList(EnhancedBy list, String option) verifies if option value is in the list index = -1 indicates the value is not in liststatic voidHelper.verifyElementContainingText(EnhancedBy element, String text) verify if element contains textvoidVerifyHelper.verifyElementContainingText(EnhancedBy element, String text) verify if element contains textstatic voidHelper.verifyElementCount(EnhancedBy by, int value, int... correction) verifies element countvoidVerifyHelper.verifyElementCount(EnhancedBy by, int value, int... correction) verifies element count element must be > 0 correct value: if more elements than needed are identified.voidVerifyHelper.verifyElementHasExactText(EnhancedBy element, int index, String text) verify if element has exact text valuestatic voidHelper.verifyElementIsDisplayed(EnhancedBy by) verifies if element(s) is (are) displayedvoidVerifyHelper.verifyElementIsDisplayed(EnhancedBy by) verifies if element(s) is (are) displayedstatic voidHelper.verifyElementIsNotDisplayed(EnhancedBy by) verifies if element(s) is (are) not displayedvoidVerifyHelper.verifyElementIsNotDisplayed(EnhancedBy by) verifies if element(s) is (are) not displayedstatic voidHelper.verifyElementText(EnhancedBy by, String value) verifies element text equals provided valuevoidVerifyHelper.verifyElementText(EnhancedBy by, String value) verifies element text equals provided valuestatic voidHelper.verifyIsInList(EnhancedBy listValue, String option) verifies if option value is in the list index = -1 indicates the value is not in liststatic voidHelper.verifyIsInList(EnhancedBy listValue, String indicator, String option) verify text option in list based on key value in the listvoidListHelper.verifyIsInList(EnhancedBy list, String option) verifies if option value is in the list index = -1 indicates the value is not in listvoidListHelper.verifyIsInList(EnhancedBy list, String indicator, String option) verify text option in list based on key value in the listvoidHelper.verifyToolTip(EnhancedBy tooltip, int index, String text) verify tool tip is displayedvoidVerifyHelper.verifyToolTip(EnhancedBy tooltip, int index, String text) verify tooltip is displayedstatic voidHelper.waitForAdditionalElementsToLoad(EnhancedBy target, int originalCount) waits for element count to increase from the originalCount Usefull When waiting for a list to expand with additional itemsstatic voidHelper.waitForAdditionalElementsToLoad(EnhancedBy target, int originalCount, int time) waits for element count to increase from the originalCount Usefull When waiting for a list to expand with additional itemsbooleanWaitHelper.waitForAdditionalElementsToLoad(EnhancedBy target, int originalCount) waits for element count to increase from the originalCount Usefull When waiting for a list to expand with additional itemsbooleanWaitHelper.waitForAdditionalElementsToLoad(EnhancedBy target, int originalCount, int time) waits for element count to increase from the originalCount Usefull When waiting for a list to expand with additional itemsstatic booleanHelper.waitForAnyTextToLoad(EnhancedBy target, int time, String... text) wait for any text strings to become availablestatic booleanHelper.waitForAnyTextToLoad(EnhancedBy target, String... text) wait for any text strings to become availablebooleanWaitHelper.waitForAnyTextToLoad(EnhancedBy target, int time, String... text) wait for any text strings to become availablebooleanWaitHelper.waitForAnyTextToLoad(EnhancedBy target, String... text) wait for any text strings to become availablestatic booleanHelper.waitForAnyTextToLoadContaining(EnhancedBy target, int time, String... text) wait for any text strings to become availablestatic booleanHelper.waitForAnyTextToLoadContaining(EnhancedBy target, String... text) wait for any text strings to become availablebooleanWaitHelper.waitForAnyTextToLoadContaining(EnhancedBy target, int time, String... text) wait for any text strings to become availablebooleanWaitHelper.waitForAnyTextToLoadContaining(EnhancedBy target, String... text) wait for any text strings to become availablebooleanHelper.waitForClassContain(EnhancedBy target, int index, String value) wait for class to containbooleanHelper.waitForClassContain(EnhancedBy target, int index, String value, int time) wait for class to contain valuebooleanWaitHelper.waitForClassContain(EnhancedBy target, int index, String value) wait for class to contain valuebooleanWaitHelper.waitForClassContain(EnhancedBy target, int index, String value, int time) wait for class to contain valuebooleanWaitHelper.waitForCondition(org.openqa.selenium.support.ui.ExpectedCondition<Boolean> condition, EnhancedBy target, int time) wait for condition to be truebooleanWaitHelper.waitForCondition2(org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> condition2, EnhancedBy target, int time) static booleanHelper.waitForElementToBeClickable(EnhancedBy selector) wait for element to become clickable causes instability with hybrid mobile appstatic booleanHelper.waitForElementToBeClickable(EnhancedBy selector, int timeInSeconds) wait for element to become clickable causes instability with hybrid mobile appbooleanWaitHelper.waitForElementToBeClickable(EnhancedBy selector) booleanWaitHelper.waitForElementToBeClickable(EnhancedBy target, int time) static booleanHelper.waitForElementToBeRemoved(EnhancedBy target) waits for element to not be displayed wait for maximum of 60 secondsstatic booleanHelper.waitForElementToBeRemoved(EnhancedBy target, int time) waits for element to not be displayedstatic booleanHelper.waitForElementToBeRemoved(EnhancedBy target, int time, int waitForTargetToLoadInSeconds) waits for element to not be displayedbooleanWaitHelper.waitForElementToBeRemoved(EnhancedBy target) waits for element to not be displayed wait for maximum of 60 secondsbooleanWaitHelper.waitForElementToBeRemoved(EnhancedBy target, int time) waits for element to not be displayedbooleanWaitHelper.waitForElementToBeRemoved(EnhancedBy target, int time, int waitForTargetToLoadInSeconds) static booleanHelper.waitForElementToBeVisible(EnhancedBy target, int time, int count) booleanWaitHelper.waitForElementToBeVisible(EnhancedBy target, int time, int count) waits for element to load If mobile device, scrolls down the page until element is visiblestatic voidHelper.waitForElementToLoad(EnhancedBy target) waits for element to be displayed for amount of time specified by 60 secondsstatic booleanHelper.waitForElementToLoad(EnhancedBy target, int time) waits for element to load count() checks if the element is displayed Then gets the count numberstatic booleanHelper.waitForElementToLoad(EnhancedBy target, int time, int count) waits for element to load If mobile device, scrolls down the page until element is visiblebooleanWaitHelper.waitForElementToLoad(EnhancedBy target) waits for element to be displayed for amount of time specified by 60 secondsbooleanWaitHelper.waitForElementToLoad(EnhancedBy target, int time) waits for element to load count() checks if the element is displayed Then gets the count numberbooleanWaitHelper.waitForElementToLoad(EnhancedBy target, int time, int count) static booleanHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2) waits for either element to load returns true When first item loadsstatic booleanHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, int time) waits for either element to load returns true When first item loadsstatic booleanHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, EnhancedBy element3) waits for either element to load returns true When first item loadsstatic booleanHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, EnhancedBy element3, int time) waits for either element to load returns true When first item loadsbooleanWaitHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2) waits for either element to load returns true When first item loadsbooleanWaitHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, int time) waits for either element to load returns true When first item loadsbooleanWaitHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, EnhancedBy element3) waits for either element to load returns true When first item loadsbooleanWaitHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, EnhancedBy element3, int time) waits for either element to load returns true When first item loadsstatic voidHelper.waitForListItemToLoad_Contains(EnhancedBy list, String option) waits for item containing in list to loadvoidWaitHelper.waitForListItemToLoad_Contains(EnhancedBy list, String option) waits for item containing in list to loadstatic voidHelper.waitForTextToLoad(EnhancedBy target, int time, String text) make sure only one element And caller needs to take responsibility to have text in the elementstatic voidHelper.waitForTextToLoad(EnhancedBy target, String text) waits for text to be loaded for amount of time specified by 60 secondsvoidWaitHelper.waitForTextToLoad(EnhancedBy target, int time, String text) make sure only one element And caller needs to take responsibility to have text in the elementvoidWaitHelper.waitForTextToLoad(EnhancedBy target, String text) waits for text to be loaded for amount of time specified by 60 secondsLoginbuilder.withFormSubmit(EnhancedBy element, EnhancedBy expected) Loginbuilder.withFormSubmit(EnhancedBy element, EnhancedBy expected, EnhancedBy optionalElemennt) Loginbuilder.withOptionalButton(EnhancedBy element) Loginbuilder.withOptionalField(EnhancedBy element, String value) Loginbuilder.withOptionalSubmit(EnhancedBy element, EnhancedBy expected) Loginbuilder.withPassword(EnhancedBy element, String value) Loginbuilder.withSelectButton(EnhancedBy element, EnhancedBy expected) Loginbuilder.withSelectButtonAndWaitForFirstElement(EnhancedBy element, EnhancedBy expected, EnhancedBy expected2) Loginbuilder.withSelectNext(EnhancedBy element, EnhancedBy expected) Loginbuilder.withUsername(EnhancedBy element, String value) Loginbuilder.withVerifyError(EnhancedBy element, String error) Loginbuilder.withVerifyText(EnhancedBy element, String text) Loginbuilder.withWaitForEitherElement(EnhancedBy element, EnhancedBy element2) Loginbuilder.withWaitForElement(EnhancedBy element) -
Uses of EnhancedBy in core.helpers.click
Methods in core.helpers.click with parameters of type EnhancedByModifier and TypeMethodDescriptionvoidClickHelper.click(EnhancedBy target, int index) click without waitingvoidClickHelperAction.clickAction(EnhancedBy target, int index) click using actionsvoidClickHelper.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected) clicks element based on index And waits for expected element to be displayedvoidClickHelper.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected, boolean mobileRefresh) clicks element based on index And waits for expected element to be displayedvoidClickHelper.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected1, EnhancedBy expected2) click And expect for either elementvoidClickHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected) clicks target And waits for expected element to display retries 10 timesvoidClickHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected, boolean mobileRefresh) voidClickHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected, EnhancedBy spinner) clicks target And waits for expected element to show up also waits for spinner element to be removed from displayvoidClickHelperAction.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected) clicks element based on index And waits for expected element to be displayedvoidClickHelperAction.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected, boolean mobileRefresh) clicks element based on index And waits for expected element to be displayedvoidClickHelperAction.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected1, EnhancedBy expected2) click And expect for either elementvoidClickHelperAction.clickAndExpect(EnhancedBy target, EnhancedBy expected) clicks target And waits for expected element to display retries 10 timesvoidClickHelperAction.clickAndExpect(EnhancedBy target, EnhancedBy expected, boolean mobileRefresh) voidClickHelperAction.clickAndExpect(EnhancedBy target, EnhancedBy expected, EnhancedBy spinner) clicks target And waits for expected element to show up also waits for spinner element to be removed from displayvoidClickHelperJs.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected) clicks element based on index And waits for expected element to be displayedvoidClickHelperJs.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected, boolean mobileRefresh) clicks element based on index And waits for expected element to be displayedvoidClickHelperJs.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected1, EnhancedBy expected2) click And expect for either elementvoidClickHelperJs.clickAndExpect(EnhancedBy target, EnhancedBy expected) clicks target And waits for expected element to display retries 10 timesvoidClickHelperJs.clickAndExpect(EnhancedBy target, EnhancedBy expected, boolean mobileRefresh) voidClickHelperJs.clickAndExpect(EnhancedBy target, EnhancedBy expected, EnhancedBy spinner) clicks target And waits for expected element to show up also waits for spinner element to be removed from displayvoidClickHelper.clickAndExpectByAction(EnhancedBy target, int index, EnhancedBy expected) click And expect using action clickvoidClickHelper.clickAndExpectByAction(EnhancedBy target, EnhancedBy expected) click And expect using action clickvoidClickHelper.clickAndExpectByText(EnhancedBy target, String text, EnhancedBy expected) click And expect based on the text value on the element.voidClickHelperAction.clickAndExpectByText(EnhancedBy target, String text, EnhancedBy expected) click And expect based on the text value on the element.voidClickHelperJs.clickAndExpectByText(EnhancedBy target, String text, EnhancedBy expected) click And expect based on the text value on the element.voidClickHelper.clickAndExpectContainsByText(EnhancedBy target, String text, EnhancedBy expected) click And expect based on the text value on the element.voidClickHelper.clickAndExpectNoRetry(EnhancedBy target, int index, EnhancedBy expected) click and expect with retrying to click the elmeent on failurevoidClickHelper.clickAndHold(EnhancedBy target, double seconds) click And hold elementvoidClickHelper.clickAndHold(EnhancedBy target, int index, double seconds) click And hold based on element indexvoidClickHelperAction.clickAndHold(EnhancedBy target, double seconds) click And hold elementvoidClickHelperAction.clickAndHold(EnhancedBy target, int index, double seconds) click And hold based on element indexvoidClickHelper.clickAndNotExpect(EnhancedBy target, int index, EnhancedBy expected) clicks target And waits for expected to not be displayed retries 10 timesvoidClickHelper.clickAndNotExpect(EnhancedBy target, EnhancedBy expected) voidClickHelperAction.clickAndNotExpect(EnhancedBy target, int index, EnhancedBy expected) clicks target And waits for expected to not be displayed retries 10 timesvoidClickHelperAction.clickAndNotExpect(EnhancedBy target, EnhancedBy expected) voidClickHelperJs.clickAndNotExpect(EnhancedBy target, int index, EnhancedBy expected) clicks target And waits for expected to not be displayed retries 10 timesvoidClickHelperJs.clickAndNotExpect(EnhancedBy target, EnhancedBy expected) voidClickHelper.clickAndWait(EnhancedBy target, double timeInSeconds) clicks target And waits for secondsvoidClickHelper.clickAndWait(EnhancedBy target, int index, double timeInSeconds) clicks target And waits for secondsvoidClickHelperAction.clickAndWait(EnhancedBy target, double timeInSeconds) clicks target And waits for secondsvoidClickHelperAction.clickAndWait(EnhancedBy target, int index, double timeInSeconds) clicks target And waits for secondsvoidClickHelperJs.clickAndWait(EnhancedBy target, double timeInSeconds) clicks target And waits for secondsvoidClickHelperJs.clickAndWait(EnhancedBy target, int index, double timeInSeconds) clicks target And waits for secondsvoidClickHelper.clickElementContinsByText(EnhancedBy by, String text) click element with text containingvoidClickHelperAction.clickElementContinsByText(EnhancedBy by, String text) click element with text containingvoidClickHelperJs.clickElementContinsByText(EnhancedBy by, String text) click element with text containingvoidClickHelper.clickElementLocationBy(EnhancedBy by, int x, int y) Click on an element's specific x,y locationvoidClickHelperAction.clickElementLocationBy(EnhancedBy by, int x, int y) Click on an element's specific x,y locationvoidClickHelperJs.clickJs(EnhancedBy target, int index) voidClickHelper.clickPointsAndExpect(int x, int y, EnhancedBy expected) click point at x,y coordinates and expect and element to be present retry every 5 seconds for duration of explicit timeoutvoidClickHelperAction.doubleClick(EnhancedBy target, int index) double click on elementvoidClickHelper.dragAndDrop(EnhancedBy src, int xOffset, int yOffset) drag And drop from src element to target elementvoidClickHelper.dragAndDrop(EnhancedBy src, int srcIndex, EnhancedBy target, int targetIndex) drag And drop from src element to target elementvoidClickHelper.dragAndDrop(EnhancedBy srcParent, int srcParentIndex, EnhancedBy srcChild, int scrChildIndex, EnhancedBy targetParent, int targeParenttIndex, EnhancedBy targetChild, int targetChildIndex) drag And drop from src element to target elementvoidClickHelper.dragAndDrop(EnhancedBy src, EnhancedBy target) drag And drop from src element to target elementvoidClickHelperAction.dragAndDrop(EnhancedBy src, int xOffset, int yOffset) drag And drop from src element to target elementvoidClickHelperAction.dragAndDrop(EnhancedBy src, EnhancedBy target) drag And drop from src element to target elementvoidClickHelperAction.rightClick(EnhancedBy target, int index) right click on element at index -
Uses of EnhancedBy in core.helpers.legacy
Methods in core.helpers.legacy that return EnhancedByModifier and TypeMethodDescriptionstatic EnhancedByHelper.byAccessibility(String element, String name) gets element by accessibility idstatic EnhancedBygets element by css valuestatic EnhancedBygets element by idstatic EnhancedBygets element by xpathstatic EnhancedByDriverLegacy.getEnhancedElement(org.openqa.selenium.WebElement target) protected static EnhancedByDriverLegacy.setEnhancedElement(String selector, String value) Methods in core.helpers.legacy with parameters of type EnhancedByModifier and TypeMethodDescriptionstatic voidHelper.clearAndSetField(EnhancedBy field, int index, CharSequence... value) sets field clears field before setting the valuestatic voidHelper.clearAndSetField(EnhancedBy field, CharSequence... value) sets field clears field before setting the valuestatic voidHelper.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected) clicks element based on index And waits for expected element to be displayedstatic voidHelper.clickAndExpect(EnhancedBy target, int index, EnhancedBy expected1, EnhancedBy expected2) clicks target And wait for one the 2 expected elements to appearstatic voidHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected) clicks target And waits for expected element to display retries 10 timesstatic voidHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected, boolean isMobileRefresh) clicks target And waits for expected element to display retries 10 timesstatic voidHelper.clickAndExpect(EnhancedBy target, EnhancedBy expected, EnhancedBy spinner) clicks target And waits for expected element to show up also waits for spinner element to be removed from displaystatic voidHelper.clickAndExpect(EnhancedBy target, String text, EnhancedBy expected) click And expect based on the text value on the element.voidHelper.clickAndExpectContainsByText(EnhancedBy target, String text, EnhancedBy expected) click And expect based on the text value on the element.static voidHelper.clickAndHold(EnhancedBy target, double seconds) click And hold elementstatic voidHelper.clickAndHold(EnhancedBy target, int index, double seconds) click And hold based on element indexstatic voidHelper.clickAndNotExpect(EnhancedBy target, int index, EnhancedBy expected) static voidHelper.clickAndNotExpect(EnhancedBy target, EnhancedBy expected) clicks target And waits for expected to not be displayed retries 10 timesstatic voidHelper.clickAndWait(EnhancedBy target, double timeInSeconds) clicks target And waits for secondsstatic voidHelper.clickAndWait(EnhancedBy target, int index, double timeInSeconds) clicks target And waits for secondsstatic voidHelper.clickElementContinsByText(EnhancedBy by, String text) click element with text containingstatic voidHelper.clickElementLocationBy(EnhancedBy by, int x, int y) Click on an element's specific x,y locationstatic voidHelper.clickPointsAndExpect(int x, int y, EnhancedBy expected) click point at x,y coordinates and expect and element to be present retry every 5 seconds for duration of explicit timeoutstatic voidHelper.doubleClick(EnhancedBy target, int index) double click on elementstatic voidHelper.doubleClickBy(EnhancedBy by) static voidHelper.dragAndDrop(EnhancedBy src, int xOffset, int yOffset) drag And drop from src element to target elementvoidHelper.dragAndDrop(EnhancedBy srcParent, int srcParentIndex, EnhancedBy srcChild, int scrChildIndex, EnhancedBy targetParent, int targeParenttIndex, EnhancedBy targetChild, int targetChildIndex) drag And drop from src element to target elementstatic voidHelper.dragAndDrop(EnhancedBy src, EnhancedBy target) drag And drop from src element to target elementstatic int[]Helper.findElementCoordinates(EnhancedBy target) returns the center coordinates of the target elementstatic int[]Helper.findMiddleOfElement(EnhancedBy target) returns the center coordinates of the target elementstatic voidHelper.formSubmit(EnhancedBy button, EnhancedBy expected) select submit button And wait for expected element to loadstatic voidHelper.formSubmit(EnhancedBy button, EnhancedBy expected, EnhancedBy spinner) clicks submit button, wait for element to appear And loading spinner to be removedstatic StringHelper.getAttribute(EnhancedBy byValue, int index, String attribute) gets specified attribute of the element based on indexstatic StringHelper.getAttribute(EnhancedBy byValue, String attribute) gets specified attribute of the elementstatic intHelper.getElementIndexContainByText(EnhancedBy listValue, String option) retuns index of element in list which contains in textstatic intHelper.getElementIndexEqualsByText(EnhancedBy listValue, String option) returns the index of text value in a liststatic intHelper.getElementIndexInList(EnhancedBy srcList, EnhancedBy target) find the index of the target element in list eg.static org.openqa.selenium.PointHelper.getElementPosition(EnhancedBy by) get element position on displaystatic org.openqa.selenium.PointHelper.getElementPosition(EnhancedBy by, int index) get element position on displaystatic org.openqa.selenium.DimensionHelper.getElementSize(EnhancedBy by) returns element dimensionstatic intHelper.getListCount(EnhancedBy listValue) returns the number of elements in listHelper.getListValues(EnhancedBy listValue) returns the list of values in a listHelper.getRowValuesFromList(EnhancedBy srclist, int index, EnhancedBy rows) returns the list of string values for a row of elementsHelper.getTableMap(EnhancedBy columns, int columnInitialIndex, EnhancedBy dataRows, int rowInitialIndex, EnhancedBy dataCells, int maxRows) gets hashmap representation of data column with row valuesHelper.getTableMap(EnhancedBy columns, EnhancedBy dataRows, EnhancedBy dataCells) gets hashmap representation of data column with row valuesHelper.getTableMap(EnhancedBy columns, EnhancedBy dataRows, EnhancedBy dataCells, int maxRows) gets hashmap representation of data column with row valuesHelper.getTextList(EnhancedBy listValue) returns the list of values in a liststatic StringHelper.getTextValue(EnhancedBy element) gets the text value from an elementstatic StringHelper.getTextValue(EnhancedBy element, int index) gets the text value from an elementstatic voidHelper.highLightWebElement(EnhancedBy by, int index) highlights the web element use on clicks and send key elementsstatic voidHelper.hoverBy(EnhancedBy by) hover over elementstatic voidHelper.hoverBy(EnhancedBy by, int index) hover over elementvoidHelper.inputTextByAction(EnhancedBy by, String text) static booleanHelper.isAttributeContaining(EnhancedBy by, String attribute, String value) returns true if element contains attribute valuestatic booleanHelper.isContainedInList(EnhancedBy listValue, String option) return if element is contained in liststatic booleanHelper.isDisplayed(EnhancedBy element) returns true if element is displayedstatic booleanHelper.isElementContainingClass(EnhancedBy by, String classValue) returns true if element contains class valuestatic booleanHelper.isElementContainingText(EnhancedBy element, String text) returns true if element contains textbooleanHelper.isElementEditable(EnhancedBy element) attempts to set text value on element, if not successful, then element is not editablebooleanHelper.isElementEditable(EnhancedBy element, int index) attempts to set text value on element, if not successful, then element is not editablestatic booleanHelper.isExactMatchInList(EnhancedBy listValue, String option) return if element is an exact match in liststatic booleanHelper.isPresent(EnhancedBy element) returns true if element is displayedstatic BooleanHelper.isVisibleInViewport(EnhancedBy by) returns true if the element is visible in the current page only for web applicationsstatic BooleanHelper.isVisibleInViewport(EnhancedBy by, int index) returns true if the element is visible in the current page only for web applicationsstatic voidHelper.mobile_longPress(EnhancedBy target, long miliSeconds) press per retry presses the target elementstatic voidHelper.mobile_longPressAndExpect(EnhancedBy target, long miliSeconds, EnhancedBy expected) long press And expect elementstatic voidHelper.mobile_scrollToElement(EnhancedBy target) scrolls to mobile element until element is becomes visiblevoidHelper.mobile_swipeDown(EnhancedBy element, int index, double durationInSeconds) swipe down on the screen based on element positionvoidHelper.mobile_swipeLeft(EnhancedBy element, int index, double durationInSeconds) swipe left on the screen based on element positionvoidHelper.mobile_swipeRight(EnhancedBy element, int index, double durationInSeconds) swipe right on the screen based on element positionvoidHelper.mobile_swipeUp(EnhancedBy element, int index, double durationInSeconds) swipe up on the screen based on element positionstatic voidHelper.mobile_waitAndRefreshForElementToLoad(EnhancedBy target) waits for element to load And refreshes the app each time to renew the domstatic voidHelper.mobile_waitAndRefreshForElementToLoad(EnhancedBy target, int time) waits for element to load And refreshes the app each time to renew the domstatic voidHelper.mobile_zoomIn(EnhancedBy indicator) zooms in And checks if target level indicator has been reachedstatic voidHelper.mobile_zoomOut(EnhancedBy indicator) zooms out And checks if target level indicator has been reachedstatic voidHelper.moveToElement(EnhancedBy target, int index) move to element by using actionstatic voidHelper.moveToElement(EnhancedBy target, int index, int xOffset, int yOffset) move to element by using actionstatic voidHelper.rightClick(EnhancedBy target, int index) right click on element at indexstatic voidHelper.scrollToWebElement(EnhancedBy element) scroll to web elementstatic voidHelper.scrollToWebElement(EnhancedBy element, int index) scroll to elementstatic voidHelper.searchAndWaitForResults(String searchQuery, EnhancedBy byTarget, EnhancedBy spinner) enters value into the search field And selects enter waits for the loading spinner to be removedstatic voidHelper.selectCheckBox(EnhancedBy button, boolean isSelect) selects checkbox based on by valuestatic voidHelper.selectDropDown(int index, EnhancedBy field, EnhancedBy listValue) select drop down by index from the drop down liststatic voidHelper.selectDropDown(EnhancedBy field, EnhancedBy item) select drop down using by value of the list itemstatic voidHelper.selectDropDown(EnhancedBy field, EnhancedBy list, String... options) selects drop downstatic voidHelper.selectDropDown(String option, EnhancedBy field, int index, EnhancedBy listValue) selects drop down based on index of the drop down fieldstatic voidHelper.selectDropDown(String option, EnhancedBy field, int index, EnhancedBy list, int listIndex) select drop down based on index of the drop down list eg.static voidHelper.selectDropDown(String option, EnhancedBy field, EnhancedBy listValue) Deprecated.replaced by selectDropDown(field, list, options) selects drop downstatic voidHelper.selectDropDown(String option, EnhancedBy field, EnhancedBy listValue, int listIndex) select drop down based on index of the drop down list eg.static voidHelper.selectDropDown(String option, EnhancedBy field, String field_Identifier, EnhancedBy listValue) selects drop down from list defined by another list defined by textstatic voidHelper.selectDropDownWithDoubleClick(String option, EnhancedBy field, int index, EnhancedBy listValue) selects dropdown by double clicking on the fieldstatic voidHelper.selectDropDownWithDoubleClick(String option, EnhancedBy field, EnhancedBy listValue) selects dropdown by double clicking on the fieldstatic voidHelper.selectElementContainedInList(EnhancedBy listValue, String option, EnhancedBy target) Selects list item from a parent container eg.static voidHelper.selectElementContainedInList(EnhancedBy listValue, String option, EnhancedBy target, int targetIndex) Selects list item from a parent container eg.static voidHelper.selectElementInList(EnhancedBy listValue, int index) selects an element in list by its index valuestatic voidHelper.selectElementInList(EnhancedBy listValue, int index, EnhancedBy expected) selects an element in list by its index value And waits for expected elementstatic voidHelper.selectListItemByIndex(EnhancedBy listValue, int index) selects list item by the string option providedstatic voidHelper.selectListItemContainsByName(EnhancedBy listValue, String option) finds target element which is in the same container And has the same index as the parent eg.static voidHelper.selectListItemContainsByName(EnhancedBy listValue, String option, EnhancedBy target) selects list item containing string eg.static voidHelper.selectListItemEqualsByName(EnhancedBy listValue, String option) selects list item by the string option providedstatic voidHelper.selectListItemEqualsByName(EnhancedBy listValue, String option, EnhancedBy target) finds target element which is in the same container And has the same index as the parent eg.static voidHelper.selectMultipleCheckboxOptions(List<String> selections, EnhancedBy checkboxes) selects multiple checkbox optionsstatic voidHelper.selectRadioButton(EnhancedBy button) selects a buttonstatic voidHelper.selectRadioButton(String option, EnhancedBy buttons) selects radio button by radio button descriptionstatic voidHelper.setAttribute(EnhancedBy by, int index, String attribute, String value) sets attribute value of an elementstatic voidHelper.setAttribute(EnhancedBy by, String attribute, String value) sets attribute value of an elementstatic voidHelper.setChildField(EnhancedBy parent, int parentIndex, EnhancedBy child, int childIndex, CharSequence... value) sets key based on nested text fieldstatic voidHelper.setField(EnhancedBy field, CharSequence... value) set field value if value is not emptystatic voidHelper.setField(String value, EnhancedBy field, int index) sets field text value by index hides keyboard if on ios devicestatic voidHelper.setFieldAndEnter(EnhancedBy field, CharSequence... value) sets field And presses the enter keystatic voidHelper.setFieldByAction(EnhancedBy field, int index, CharSequence... value) static voidHelper.setFieldByAction(EnhancedBy field, CharSequence... value) static voidHelper.setFieldByJs(EnhancedBy field, int index, CharSequence... value) static voidHelper.setFieldByJs(EnhancedBy field, CharSequence... value) static voidHelper.setKey(org.openqa.selenium.Keys key, EnhancedBy field) sendstatic voidHelper.switchIframe(EnhancedBy frame) switches frame to frame specifiedstatic voidHelper.uploadFile(String location, EnhancedBy imageButton) uploads file by specifying file location relative to main pathstatic voidHelper.uploadImage(String location, EnhancedBy imageButton, EnhancedBy images) sets the image based on locationstatic voidHelper.uploadImages(List<String> locations, EnhancedBy imageButton, EnhancedBy images) sets the image based on locationstatic voidHelper.verifyAnyText(EnhancedBy target, String... values) verifies if text contains any of values in liststatic voidHelper.verifyAnyTextContaining(EnhancedBy target, String... values) verifies if text contains any of values in liststatic voidHelper.verifyContainsIsInList(EnhancedBy listValue, String option) verifies if option value is in the list index = -1 indicates the value is not in liststatic voidHelper.verifyElementContainingText(EnhancedBy element, String text) verify if element contains textstatic voidHelper.verifyElementCount(EnhancedBy by, int value, int... correction) verifies element countstatic voidHelper.verifyElementIsDisplayed(EnhancedBy by) verifies if element(s) is (are) displayedstatic voidHelper.verifyElementIsNotDisplayed(EnhancedBy by) verifies if element(s) is (are) not displayedstatic voidHelper.verifyElementText(EnhancedBy by, String value) verifies element text equals provided valuestatic voidHelper.verifyIsInList(EnhancedBy listValue, String option) verifies if option value is in the list index = -1 indicates the value is not in liststatic voidHelper.verifyIsInList(EnhancedBy listValue, String indicator, String option) verify text option in list based on key value in the listvoidHelper.verifyToolTip(EnhancedBy tooltip, int index, String text) verify tool tip is displayedstatic voidHelper.waitForAdditionalElementsToLoad(EnhancedBy target, int originalCount) waits for element count to increase from the originalCount Usefull When waiting for a list to expand with additional itemsstatic voidHelper.waitForAdditionalElementsToLoad(EnhancedBy target, int originalCount, int time) waits for element count to increase from the originalCount Usefull When waiting for a list to expand with additional itemsstatic booleanHelper.waitForAnyTextToLoad(EnhancedBy target, int time, String... text) wait for any text strings to become availablestatic booleanHelper.waitForAnyTextToLoad(EnhancedBy target, String... text) wait for any text strings to become availablestatic booleanHelper.waitForAnyTextToLoadContaining(EnhancedBy target, int time, String... text) wait for any text strings to become availablestatic booleanHelper.waitForAnyTextToLoadContaining(EnhancedBy target, String... text) wait for any text strings to become availablebooleanHelper.waitForClassContain(EnhancedBy target, int index, String value) wait for class to containbooleanHelper.waitForClassContain(EnhancedBy target, int index, String value, int time) wait for class to contain valuestatic booleanHelper.waitForElementToBeClickable(EnhancedBy selector) wait for element to become clickable causes instability with hybrid mobile appstatic booleanHelper.waitForElementToBeClickable(EnhancedBy selector, int timeInSeconds) wait for element to become clickable causes instability with hybrid mobile appstatic booleanHelper.waitForElementToBeRemoved(EnhancedBy target) waits for element to not be displayed wait for maximum of 60 secondsstatic booleanHelper.waitForElementToBeRemoved(EnhancedBy target, int time) waits for element to not be displayedstatic booleanHelper.waitForElementToBeRemoved(EnhancedBy target, int time, int waitForTargetToLoadInSeconds) waits for element to not be displayedstatic voidHelper.waitForElementToLoad(EnhancedBy target) waits for element to be displayed for amount of time specified by 60 secondsstatic booleanHelper.waitForElementToLoad(EnhancedBy target, int time) waits for element to load count() checks if the element is displayed Then gets the count numberstatic booleanHelper.waitForElementToLoad(EnhancedBy target, int time, int count) waits for element to load If mobile device, scrolls down the page until element is visiblestatic booleanHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2) waits for either element to load returns true When first item loadsstatic booleanHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, int time) waits for either element to load returns true When first item loadsstatic booleanHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, EnhancedBy element3) waits for either element to load returns true When first item loadsstatic booleanHelper.waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, EnhancedBy element3, int time) waits for either element to load returns true When first item loadsstatic voidHelper.waitForListItemToLoad_Contains(EnhancedBy list, String option) waits for item containing in list to loadstatic voidHelper.waitForTextToLoad(EnhancedBy target, int time, String text) make sure only one element And caller needs to take responsibility to have text in the elementstatic voidHelper.waitForTextToLoad(EnhancedBy target, String text) waits for text to be loaded for amount of time specified by 60 seconds -
Uses of EnhancedBy in core.support.objects
Methods in core.support.objects that return EnhancedByModifier and TypeMethodDescriptionActionObject.getElement1()ActionObject.getElement2()ActionObject.getElement3()UserObject.getSuccessIndicator()Methods in core.support.objects with parameters of type EnhancedByModifier and TypeMethodDescriptionActionObject.withElement1(EnhancedBy element1) ActionObject.withElement2(EnhancedBy element2) ActionObject.withElement3(EnhancedBy element3) UserObject.withSuccessIndicator(EnhancedBy loginSuccessElement) -
Uses of EnhancedBy in core.uiCore.webElement
Methods in core.uiCore.webElement that return EnhancedByModifier and TypeMethodDescriptionEnhancedBy.byAccessibility(String element) EnhancedBy.byAccessibility(String element, String name) EnhancedBy.byLinkText(String element) EnhancedBy.byLinkText(String element, String name) EnhancedBy.byPartialLinkText(String element) EnhancedBy.byPartialLinkText(String element, String name) Methods in core.uiCore.webElement with parameters of type EnhancedByModifier and TypeMethodDescriptionEnhancedWebElement.findElement(EnhancedBy parentElement, int parentIndex, EnhancedBy enhanceBy) ImpEnhancedWebElement.findElement(EnhancedBy parentElement, int parentIndex, EnhancedBy element) Constructors in core.uiCore.webElement with parameters of type EnhancedByModifierConstructorDescriptionImpEnhancedWebElement(EnhancedBy parent, int parentIndex, org.openqa.selenium.WebDriver webDriver, EnhancedBy element)