| Package | Description |
|---|---|
| se.claremont.taf.javasupport.interaction | |
| se.claremont.taf.javasupport.objectstructure |
| Modifier and Type | Method and Description |
|---|---|
void |
GenericInteractionMethods.bringWindowOfElementToFront(GuiComponent component) |
boolean |
GenericInteractionMethods.checkboxIsChecked(GuiComponent component,
int timeoutInSeconds)
Returns the current status of a checkbox.
|
void |
GenericInteractionMethods.chooseRadioButton(GuiComponent guiElement,
String textOfElementToChoose)
When implemented, this method will set radio button status.
|
void |
GenericInteractionMethods.click(GuiComponent guiElement) |
void |
GenericInteractionMethods.clickByRawMouseAction(GuiComponent guiElement)
Performs a left mouse button click upon the given element.
|
void |
GenericInteractionMethods.clickElementWithText(GuiComponent parentElement,
String textOfElementToClick)
Finds the element with the specified text and click on it.
|
boolean |
GenericInteractionMethods.doesNotExist(GuiComponent guiElement)
Checks if an element does not exist at runtime.
|
boolean |
GenericInteractionMethods.doesNotExistWithTimeout(GuiComponent guiElement,
int timeoutInSeconds)
Checks if an element exist, but gives the element time to disappear for a timeout.
|
boolean |
GenericInteractionMethods.exists(GuiComponent guiElement)
Checks if an element exists in the GUI.
|
boolean |
GenericInteractionMethods.existsWithTimeout(GuiComponent guiElement,
int timeoutInSeconds)
Checks if a component exist, but actually gives it time to appear in the GUI.
|
String |
GenericInteractionMethods.getDropDownSelectedOption(GuiComponent guiComponent)
Returns the currently selected value of a dropdown
|
List<String> |
GenericInteractionMethods.getDropDownSelectedOptions(GuiComponent guiElement)
Returns a list of the selected options of a dropdown
|
List<String> |
GenericInteractionMethods.getSelected(GuiComponent guiComponent) |
String |
GenericInteractionMethods.getText(GuiComponent guiElement) |
String |
GenericInteractionMethods.getText(GuiComponent guiElement,
int timeoutInMilliseconds)
Returns the runtime text of the element.
|
void |
GenericInteractionMethods.hover(GuiComponent guiElement)
Moves the mouse to the given element.
|
boolean |
GenericInteractionMethods.isDisplayed(GuiComponent guiElement)
Checks if the element is currently displayed (no timeout, no waiting), meaning that it exists, and is set as visible in the GUI.
|
boolean |
GenericInteractionMethods.isDisplayedWithinTimeout(GuiComponent guiElement,
int timeoutInSeconds)
Checks if the element gets displayed within the timeout.
|
boolean |
GenericInteractionMethods.isNotDisplayed(GuiComponent guiElement)
Checks if the element is currently not displayed (no timeout, no waiting), meaning that it does not exists, or it is set as non-visible in the GUI.
|
boolean |
GenericInteractionMethods.isNotDisplayedWithTimeout(GuiComponent guiComponent,
int timeoutInSeconds)
Checks if the element get displayed within the timeout.
|
void |
GenericInteractionMethods.selectInDropdown(GuiComponent guiElement,
String selection)
Selects a value in a dropdown.
|
void |
GenericInteractionMethods.setCheckboxToChecked(GuiComponent component)
Sets a checkbox to be checked (=true).
|
void |
GenericInteractionMethods.setCheckboxToState(GuiComponent component,
boolean expectedEndState)
Sets a checkbox element to selected state.
|
void |
GenericInteractionMethods.setCheckboxToState(GuiComponent component,
boolean expectedEndState,
int timeoutInSeconds)
Tries to set a checkbox element to selected state for a certain number of seconds to enable elements to appear or to get enabled.
|
void |
GenericInteractionMethods.setCheckboxToUnChecked(GuiComponent component)
Sets a checkbox to be un-checked (=false).
|
void |
GenericInteractionMethods.setSelected(GuiComponent guiComponent,
String... strings) |
void |
GenericInteractionMethods.type(GuiComponent guiComponent,
int javaAwtEventKeyEvent) |
void |
GenericInteractionMethods.type(GuiComponent guiComponent,
String text) |
void |
GenericInteractionMethods.verifyCheckboxIsChecked(GuiComponent component)
Verifies that a checkbox element is checked.
|
void |
GenericInteractionMethods.verifyCheckboxIsUnChecked(GuiComponent component)
Verifies that a checkbox element is un-checked.
|
void |
GenericInteractionMethods.verifyCheckboxStatus(GuiComponent component,
boolean expectedStatus)
Verifies the status of a checkbox element.
|
void |
GenericInteractionMethods.verifyCheckboxStatus(GuiComponent component,
boolean expectedStatus,
int timeoutInSeconds)
Verifies the status of a checkbox element.
|
void |
GenericInteractionMethods.verifyElementDoesNotExist(GuiComponent guiComponent) |
void |
GenericInteractionMethods.verifyElementIsDisabled(GuiComponent guiComponent) |
void |
GenericInteractionMethods.verifyElementIsEnabled(GuiComponent guiComponent) |
void |
GenericInteractionMethods.verifyElementTextContains(GuiComponent guiElement,
String expectedText)
Retrieves the text of a runtime element and verifies the text against the given oracle.
|
void |
GenericInteractionMethods.verifyElementTextIsExactly(GuiComponent guiElement,
String expectedText)
Retrieves the text of a runtime element and verifies the text against the given oracle.
|
void |
GenericInteractionMethods.verifyElementTextIsRegexMatch(GuiComponent guiElement,
String pattern)
Retrieves the text of a runtime element and verifies the text against the given oracle.
|
void |
GenericInteractionMethods.verifyImage(GuiComponent guiElement,
String s) |
void |
GenericInteractionMethods.verifyObjectExistence(GuiComponent guiElement)
Verifies that a GUI element exists.
|
void |
GenericInteractionMethods.verifyObjectExistenceWithTimeout(GuiComponent guiElement,
int timeoutInSeconds)
Verifies object existance, but gives the element time to appear.
|
void |
GenericInteractionMethods.verifyObjectIsDisplayed(GuiComponent guiElement)
Verifies that a GUI element is displayed, and writes the outcome to the test case log.
|
void |
GenericInteractionMethods.verifyObjectIsNotDisplayed(GuiComponent guiElement)
Verifies that a GUI element is not displayed, and writes the outcome to the test case log.
|
void |
GenericInteractionMethods.write(GuiComponent guiComponent,
String textToWrite)
Writes the given text to the given component.
|
void |
GenericInteractionMethods.writeWithoutCheck(GuiComponent guiComponent,
String textToWrite)
Writes the given text to the given component.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JavaGuiElement
A GUI component in any Java client application.
|
Copyright © 2019. All rights reserved.