Package com.almis.awe.testing.selenium
Class ReactAweInstructions
- java.lang.Object
-
- com.almis.awe.testing.selenium.ReactAweInstructions
-
- All Implemented Interfaces:
IAweFrontEndInstructions,IAweInstructions
public class ReactAweInstructions extends Object implements IAweFrontEndInstructions
-
-
Constructor Summary
Constructors Constructor Description ReactAweInstructions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.BycontainsText(String clazz, String contains)Get a tag which contains a textorg.openqa.selenium.ByfindGridCell(String gridId, String search)Find a cell containing a textorg.openqa.selenium.BygetActiveDatepicker()Get active datepicker selectororg.openqa.selenium.BygetButton(String buttonId)Get buttonorg.openqa.selenium.BygetCellFromDatepicker(String type, String search)Return cell from datepicker (year, month or day)org.openqa.selenium.BygetCheckbox(String parentSelector)Get checkbox selectororg.openqa.selenium.BygetCheckboxChecked(String criterionName, boolean isChecked)Get checkbox checked or notorg.openqa.selenium.BygetContextButton(String buttonId)Get context buttonStringgetCriterionCss(String criterionName)Retrieve criterion selector in cssorg.openqa.selenium.BygetCriterionInput(String parentSelector)Retrieve criterion css selectororg.openqa.selenium.BygetDateCriterion(String parentSelector)Get date criterion selectororg.openqa.selenium.BygetDatepicker()Get datepicker selectororg.openqa.selenium.WebDrivergetDriver()org.openqa.selenium.BygetGridCell(String gridId, String rowId, String columnId)Get grid cellorg.openqa.selenium.BygetGridCellText(String gridId, String rowId, String columnId, String search)Get grid cell textorg.openqa.selenium.BygetGridHeader(String gridId, String columnId)Get grid headerorg.openqa.selenium.BygetGridLoaderSelector()Get grid loader selectororg.openqa.selenium.BygetGridSaveButton()Get grid save buttonorg.openqa.selenium.BygetGridSaveButton(String gridId)Get grid save buttonorg.openqa.selenium.BygetGridScrollZone(String gridId)Retrieve grid scroll zoneorg.openqa.selenium.BygetInfoButton(String buttonId)Get info buttonorg.openqa.selenium.BygetLoaderSelector()Get loader selectororg.openqa.selenium.BygetLoadingBar()Get loading barMenuBehaviorgetMenuBehavior()Get menu behaviororg.openqa.selenium.BygetMenuDropdown()Get menu dropdownorg.openqa.selenium.BygetMenuOpenedChildren(String option)Get opened children in menuorg.openqa.selenium.BygetMenuOption(String option)Get menu optionorg.openqa.selenium.BygetMessage(String type)StringgetParentCss(String gridId, String rowId, String columnId)Retrieve parent selector in cssorg.openqa.selenium.BygetPopover()Get popover selectorRowEditBehaviorgetRowEditBehavior()Get row edit behaviororg.openqa.selenium.BygetSelectChoice(String parentSelector)Get select choice buttonorg.openqa.selenium.BygetSelectChosen(String criterionName)Get select chosen elementorg.openqa.selenium.BygetSelectDropdownList()Get select dropdown listorg.openqa.selenium.BygetSelectDropdownListElements()Get select dropdown list elementsorg.openqa.selenium.BygetSelectDropdownListFirstElement()Get select dropdown list first elementorg.openqa.selenium.BygetSelectDropdownListLastElement()Get select dropdown list last elementorg.openqa.selenium.BygetSelectLoader(String parentSelector)Get select loaderorg.openqa.selenium.BygetSelectMultipleTextContainer(String criterionName)Get select multiple text containerorg.openqa.selenium.BygetSelectResult(String match)Get select resultorg.openqa.selenium.BygetSuggest(String parentSelector)Get suggestSuggestBehaviorgetSuggestBehavior()Get suggest behaviororg.openqa.selenium.BygetSuggestChoice(String parentSelector)Get suggest choice buttonorg.openqa.selenium.BygetSuggestChosen(String criterionName)Get suggest chosen elementorg.openqa.selenium.BygetSuggestDropdownList()Get suggest dropdown listorg.openqa.selenium.BygetSuggestDropdownListLastElement()Get suggest dropdown list last elementorg.openqa.selenium.BygetSuggestInput(String parentSelector)Get suggest with inputorg.openqa.selenium.BygetSuggestLoader(String parentSelector)Get suggest loaderorg.openqa.selenium.BygetSuggestMultipleChoiceClose(String parentSelector)Get suggest multiple choice closeorg.openqa.selenium.BygetSuggestMultipleInput(String parentSelector)Get suggest multiple inputorg.openqa.selenium.BygetSuggestResult(String match)Get suggest resultorg.openqa.selenium.BygetTab(String tabId)Get taborg.openqa.selenium.BygetTab(String tabId, String tabLabel)Get taborg.openqa.selenium.BygetTabActive(String tabId, String tabLabel)Get tab activeorg.openqa.selenium.BygetTabMenu(String tabId)Get tab menuorg.openqa.selenium.BygetTabMenuDropdown(String tabId)Get tab menu dropdownorg.openqa.selenium.BygetTabMenuDropdownOption(String tabId, String tabLabel)Get tab menu dropdown optionorg.openqa.selenium.BygetTreeButton(String gridId, String rowId)Get tree buttonorg.openqa.selenium.BygetTreeButtonLoader()Get tree button loaderIAweInstructionssetSeleniumModel(SeleniumModel seleniumModel)
-
-
-
Method Detail
-
getDriver
public org.openqa.selenium.WebDriver getDriver()
- Specified by:
getDriverin interfaceIAweInstructions
-
setSeleniumModel
public IAweInstructions setSeleniumModel(SeleniumModel seleniumModel)
- Specified by:
setSeleniumModelin interfaceIAweInstructions
-
getCriterionCss
public String getCriterionCss(String criterionName)
Description copied from interface:IAweFrontEndInstructionsRetrieve criterion selector in css- Specified by:
getCriterionCssin interfaceIAweFrontEndInstructions- Parameters:
criterionName- Criterion name- Returns:
- Css parent selector
-
getParentCss
public String getParentCss(String gridId, String rowId, String columnId)
Description copied from interface:IAweFrontEndInstructionsRetrieve parent selector in css- Specified by:
getParentCssin interfaceIAweFrontEndInstructions- Parameters:
gridId- Grid idrowId- Row idcolumnId- Column id- Returns:
- Css parent selector
-
getGridScrollZone
public org.openqa.selenium.By getGridScrollZone(String gridId)
Description copied from interface:IAweFrontEndInstructionsRetrieve grid scroll zone- Specified by:
getGridScrollZonein interfaceIAweFrontEndInstructions- Parameters:
gridId- Grid identifier- Returns:
- Scroll zone
-
getCriterionInput
public org.openqa.selenium.By getCriterionInput(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsRetrieve criterion css selector- Specified by:
getCriterionInputin interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector- Returns:
- Criterion input selector
-
getDatepicker
public org.openqa.selenium.By getDatepicker()
Description copied from interface:IAweFrontEndInstructionsGet datepicker selector- Specified by:
getDatepickerin interfaceIAweFrontEndInstructions- Returns:
- Datepicker selector
-
getDateCriterion
public org.openqa.selenium.By getDateCriterion(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet date criterion selector- Specified by:
getDateCriterionin interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector- Returns:
- Date criterion selector
-
getActiveDatepicker
public org.openqa.selenium.By getActiveDatepicker()
Description copied from interface:IAweFrontEndInstructionsGet active datepicker selector- Specified by:
getActiveDatepickerin interfaceIAweFrontEndInstructions- Returns:
- Active datepicker selector
-
getCellFromDatepicker
public org.openqa.selenium.By getCellFromDatepicker(String type, String search)
Description copied from interface:IAweFrontEndInstructionsReturn cell from datepicker (year, month or day)- Specified by:
getCellFromDatepickerin interfaceIAweFrontEndInstructions- Parameters:
type- Datepicker typesearch- Cell to search- Returns:
- Cell selector
-
getLoaderSelector
public org.openqa.selenium.By getLoaderSelector()
Description copied from interface:IAweFrontEndInstructionsGet loader selector- Specified by:
getLoaderSelectorin interfaceIAweFrontEndInstructions- Returns:
- loader selector
-
getLoadingBar
public org.openqa.selenium.By getLoadingBar()
Description copied from interface:IAweFrontEndInstructionsGet loading bar- Specified by:
getLoadingBarin interfaceIAweFrontEndInstructions- Returns:
- loading bar selector
-
getGridLoaderSelector
public org.openqa.selenium.By getGridLoaderSelector()
Description copied from interface:IAweFrontEndInstructionsGet grid loader selector- Specified by:
getGridLoaderSelectorin interfaceIAweFrontEndInstructions- Returns:
- grid loader selector
-
getGridHeader
public org.openqa.selenium.By getGridHeader(String gridId, String columnId)
Description copied from interface:IAweFrontEndInstructionsGet grid header- Specified by:
getGridHeaderin interfaceIAweFrontEndInstructions- Parameters:
gridId- Grid identifiercolumnId- Column identifier- Returns:
- Grid header selector
-
getGridCell
public org.openqa.selenium.By getGridCell(String gridId, String rowId, String columnId)
Description copied from interface:IAweFrontEndInstructionsGet grid cell- Specified by:
getGridCellin interfaceIAweFrontEndInstructions- Parameters:
gridId- Grid identifierrowId- Row identifiercolumnId- Column identifier- Returns:
- Grid cell selector
-
getGridSaveButton
public org.openqa.selenium.By getGridSaveButton()
Description copied from interface:IAweFrontEndInstructionsGet grid save button- Specified by:
getGridSaveButtonin interfaceIAweFrontEndInstructions- Returns:
- Grid save button selector
-
getGridSaveButton
public org.openqa.selenium.By getGridSaveButton(String gridId)
Description copied from interface:IAweFrontEndInstructionsGet grid save button- Specified by:
getGridSaveButtonin interfaceIAweFrontEndInstructions- Parameters:
gridId- Grid identifier- Returns:
- Grid save button selector
-
getGridCellText
public org.openqa.selenium.By getGridCellText(String gridId, String rowId, String columnId, String search)
Description copied from interface:IAweFrontEndInstructionsGet grid cell text- Specified by:
getGridCellTextin interfaceIAweFrontEndInstructions- Parameters:
gridId- Grid identifierrowId- Row identifiercolumnId- Column identifiersearch- Text to search- Returns:
- Grid cell selector
-
findGridCell
public org.openqa.selenium.By findGridCell(String gridId, String search)
Description copied from interface:IAweFrontEndInstructionsFind a cell containing a text- Specified by:
findGridCellin interfaceIAweFrontEndInstructions- Parameters:
gridId- Grid identifiersearch- Text to search- Returns:
- Grid cell selector
-
getRowEditBehavior
public RowEditBehavior getRowEditBehavior()
Description copied from interface:IAweFrontEndInstructionsGet row edit behavior- Specified by:
getRowEditBehaviorin interfaceIAweFrontEndInstructions- Returns:
- Row edit behavior
-
getPopover
public org.openqa.selenium.By getPopover()
Description copied from interface:IAweFrontEndInstructionsGet popover selector- Specified by:
getPopoverin interfaceIAweFrontEndInstructions- Returns:
- Popover selector
-
containsText
public org.openqa.selenium.By containsText(String clazz, String contains)
Description copied from interface:IAweFrontEndInstructionsGet a tag which contains a text- Specified by:
containsTextin interfaceIAweFrontEndInstructions- Returns:
- tag which contains text selector
-
getMessage
public org.openqa.selenium.By getMessage(String type)
- Specified by:
getMessagein interfaceIAweFrontEndInstructions
-
getMenuBehavior
public MenuBehavior getMenuBehavior()
Description copied from interface:IAweFrontEndInstructionsGet menu behavior- Specified by:
getMenuBehaviorin interfaceIAweFrontEndInstructions- Returns:
- Menu click behavior
-
getMenuOption
public org.openqa.selenium.By getMenuOption(String option)
Description copied from interface:IAweFrontEndInstructionsGet menu option- Specified by:
getMenuOptionin interfaceIAweFrontEndInstructions- Parameters:
option- Option to check- Returns:
- Opened children selector
-
getMenuOpenedChildren
public org.openqa.selenium.By getMenuOpenedChildren(String option)
Description copied from interface:IAweFrontEndInstructionsGet opened children in menu- Specified by:
getMenuOpenedChildrenin interfaceIAweFrontEndInstructions- Parameters:
option- Option to check- Returns:
- Opened children selector
-
getMenuDropdown
public org.openqa.selenium.By getMenuDropdown()
Description copied from interface:IAweFrontEndInstructionsGet menu dropdown- Specified by:
getMenuDropdownin interfaceIAweFrontEndInstructions- Returns:
- Menu dropdown selector
-
getButton
public org.openqa.selenium.By getButton(String buttonId)
Description copied from interface:IAweFrontEndInstructionsGet button- Specified by:
getButtonin interfaceIAweFrontEndInstructions- Parameters:
buttonId- Button identifier- Returns:
- Button selector
-
getInfoButton
public org.openqa.selenium.By getInfoButton(String buttonId)
Description copied from interface:IAweFrontEndInstructionsGet info button- Specified by:
getInfoButtonin interfaceIAweFrontEndInstructions- Parameters:
buttonId- Button identifier- Returns:
- Button selector
-
getTreeButton
public org.openqa.selenium.By getTreeButton(String gridId, String rowId)
Description copied from interface:IAweFrontEndInstructionsGet tree button- Specified by:
getTreeButtonin interfaceIAweFrontEndInstructions- Parameters:
gridId- Grid identifierrowId- Row identifier- Returns:
- Button selector
-
getTreeButtonLoader
public org.openqa.selenium.By getTreeButtonLoader()
Description copied from interface:IAweFrontEndInstructionsGet tree button loader- Specified by:
getTreeButtonLoaderin interfaceIAweFrontEndInstructions- Returns:
- Button loader selector
-
getTab
public org.openqa.selenium.By getTab(String tabId)
Description copied from interface:IAweFrontEndInstructionsGet tab- Specified by:
getTabin interfaceIAweFrontEndInstructions- Parameters:
tabId- Tab identifier- Returns:
- Tab selector
-
getTab
public org.openqa.selenium.By getTab(String tabId, String tabLabel)
Description copied from interface:IAweFrontEndInstructionsGet tab- Specified by:
getTabin interfaceIAweFrontEndInstructions- Parameters:
tabId- Tab identifiertabLabel- Tab label- Returns:
- Tab selector
-
getTabMenu
public org.openqa.selenium.By getTabMenu(String tabId)
Description copied from interface:IAweFrontEndInstructionsGet tab menu- Specified by:
getTabMenuin interfaceIAweFrontEndInstructions- Parameters:
tabId- Tab identifier- Returns:
- Tab menu button selector
-
getTabMenuDropdown
public org.openqa.selenium.By getTabMenuDropdown(String tabId)
Description copied from interface:IAweFrontEndInstructionsGet tab menu dropdown- Specified by:
getTabMenuDropdownin interfaceIAweFrontEndInstructions- Parameters:
tabId- Tab identifier- Returns:
- Tab menu dropdown selector
-
getTabMenuDropdownOption
public org.openqa.selenium.By getTabMenuDropdownOption(String tabId, String tabLabel)
Description copied from interface:IAweFrontEndInstructionsGet tab menu dropdown option- Specified by:
getTabMenuDropdownOptionin interfaceIAweFrontEndInstructions- Parameters:
tabId- Tab identifiertabLabel- Tab label- Returns:
- Tab menu dropdown option selector
-
getTabActive
public org.openqa.selenium.By getTabActive(String tabId, String tabLabel)
Description copied from interface:IAweFrontEndInstructionsGet tab active- Specified by:
getTabActivein interfaceIAweFrontEndInstructions- Parameters:
tabId- Tab identifiertabLabel- Tab label- Returns:
- Tab selector
-
getContextButton
public org.openqa.selenium.By getContextButton(String buttonId)
Description copied from interface:IAweFrontEndInstructionsGet context button- Specified by:
getContextButtonin interfaceIAweFrontEndInstructions- Parameters:
buttonId- Button identifier- Returns:
- Button selector
-
getCheckbox
public org.openqa.selenium.By getCheckbox(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet checkbox selector- Specified by:
getCheckboxin interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector- Returns:
- Checkbox selector
-
getCheckboxChecked
public org.openqa.selenium.By getCheckboxChecked(String criterionName, boolean isChecked)
Description copied from interface:IAweFrontEndInstructionsGet checkbox checked or not- Specified by:
getCheckboxCheckedin interfaceIAweFrontEndInstructions- Parameters:
criterionName- Criterion nameisChecked- Checked or not- Returns:
- Checkbox checked selector
-
getSelectChoice
public org.openqa.selenium.By getSelectChoice(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet select choice button- Specified by:
getSelectChoicein interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector in CSS- Returns:
- Select choice button selector
-
getSelectLoader
public org.openqa.selenium.By getSelectLoader(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet select loader- Specified by:
getSelectLoaderin interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector in CSS- Returns:
- Select loader selector
-
getSelectDropdownList
public org.openqa.selenium.By getSelectDropdownList()
Description copied from interface:IAweFrontEndInstructionsGet select dropdown list- Specified by:
getSelectDropdownListin interfaceIAweFrontEndInstructions- Returns:
- Select dropdown list selector
-
getSelectDropdownListElements
public org.openqa.selenium.By getSelectDropdownListElements()
Description copied from interface:IAweFrontEndInstructionsGet select dropdown list elements- Specified by:
getSelectDropdownListElementsin interfaceIAweFrontEndInstructions- Returns:
- Select dropdown list elements selector
-
getSelectDropdownListFirstElement
public org.openqa.selenium.By getSelectDropdownListFirstElement()
Description copied from interface:IAweFrontEndInstructionsGet select dropdown list first element- Specified by:
getSelectDropdownListFirstElementin interfaceIAweFrontEndInstructions- Returns:
- Select dropdown list first element selector
-
getSelectDropdownListLastElement
public org.openqa.selenium.By getSelectDropdownListLastElement()
Description copied from interface:IAweFrontEndInstructionsGet select dropdown list last element- Specified by:
getSelectDropdownListLastElementin interfaceIAweFrontEndInstructions- Returns:
- Select dropdown list last element selector
-
getSelectResult
public org.openqa.selenium.By getSelectResult(String match)
Description copied from interface:IAweFrontEndInstructionsGet select result- Specified by:
getSelectResultin interfaceIAweFrontEndInstructions- Parameters:
match- Result to search- Returns:
- Select result selector
-
getSelectChosen
public org.openqa.selenium.By getSelectChosen(String criterionName)
Description copied from interface:IAweFrontEndInstructionsGet select chosen element- Specified by:
getSelectChosenin interfaceIAweFrontEndInstructions- Parameters:
criterionName- Criterion name- Returns:
- Select chosen element selector
-
getSelectMultipleTextContainer
public org.openqa.selenium.By getSelectMultipleTextContainer(String criterionName)
Description copied from interface:IAweFrontEndInstructionsGet select multiple text container- Specified by:
getSelectMultipleTextContainerin interfaceIAweFrontEndInstructions- Parameters:
criterionName- Criterion name- Returns:
- Select multiple text container
-
getSuggestBehavior
public SuggestBehavior getSuggestBehavior()
Description copied from interface:IAweFrontEndInstructionsGet suggest behavior- Specified by:
getSuggestBehaviorin interfaceIAweFrontEndInstructions- Returns:
- Suggest text behavior
-
getSuggestChoice
public org.openqa.selenium.By getSuggestChoice(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet suggest choice button- Specified by:
getSuggestChoicein interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector in CSS- Returns:
- Suggest choice button selector
-
getSuggestLoader
public org.openqa.selenium.By getSuggestLoader(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet suggest loader- Specified by:
getSuggestLoaderin interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector in CSS- Returns:
- Suggest loader selector
-
getSuggest
public org.openqa.selenium.By getSuggest(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet suggest- Specified by:
getSuggestin interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent CSS selector- Returns:
- Suggest selector
-
getSuggestInput
public org.openqa.selenium.By getSuggestInput(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet suggest with input- Specified by:
getSuggestInputin interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent CSS selector- Returns:
- Suggest with input not hidden selector
-
getSuggestResult
public org.openqa.selenium.By getSuggestResult(String match)
Description copied from interface:IAweFrontEndInstructionsGet suggest result- Specified by:
getSuggestResultin interfaceIAweFrontEndInstructions- Parameters:
match- Match result- Returns:
- Suggest result element
-
getSuggestChosen
public org.openqa.selenium.By getSuggestChosen(String criterionName)
Description copied from interface:IAweFrontEndInstructionsGet suggest chosen element- Specified by:
getSuggestChosenin interfaceIAweFrontEndInstructions- Parameters:
criterionName- Criterion name- Returns:
- Select chosen element selector
-
getSuggestDropdownList
public org.openqa.selenium.By getSuggestDropdownList()
Description copied from interface:IAweFrontEndInstructionsGet suggest dropdown list- Specified by:
getSuggestDropdownListin interfaceIAweFrontEndInstructions- Returns:
- Suggest dropdown list selector
-
getSuggestDropdownListLastElement
public org.openqa.selenium.By getSuggestDropdownListLastElement()
Description copied from interface:IAweFrontEndInstructionsGet suggest dropdown list last element- Specified by:
getSuggestDropdownListLastElementin interfaceIAweFrontEndInstructions- Returns:
- Suggest dropdown list last element selector
-
getSuggestMultipleInput
public org.openqa.selenium.By getSuggestMultipleInput(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet suggest multiple input- Specified by:
getSuggestMultipleInputin interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector in CSS- Returns:
- Suggest multiple input selector
-
getSuggestMultipleChoiceClose
public org.openqa.selenium.By getSuggestMultipleChoiceClose(String parentSelector)
Description copied from interface:IAweFrontEndInstructionsGet suggest multiple choice close- Specified by:
getSuggestMultipleChoiceClosein interfaceIAweFrontEndInstructions- Parameters:
parentSelector- Parent selector in CSS- Returns:
- Suggest multiple choice close selector
-
-