Package | Description |
---|---|
org.finra.jtaf.ewd.timer | |
org.finra.jtaf.ewd.utils | |
org.finra.jtaf.ewd.widget | |
org.finra.jtaf.ewd.widget.element | |
org.finra.jtaf.ewd.widget.element.html |
Modifier and Type | Class and Description |
---|---|
class |
WidgetTimeoutException
Thrown to indicate that a
Widget operation has timed out. |
Modifier and Type | Method and Description |
---|---|
static boolean |
ScreenshotUtils.isSimilarToScreenshot(IElement element,
File controlPicture,
File toSaveAs)
Prereq: The page on which you are taking the screenshot is fully loaded
Take a screenshot of the element identified by element and save the file as toSaveAs
(Note that this file should be saved as a png).
|
static boolean |
ScreenshotUtils.isSimilarToScreenshot(IElement element,
File controlPicture,
File toSaveAs,
double threshold)
Prereq: The page on which you are taking the screenshot is fully loaded
Take a screenshot of the element identified by element and save the file as toSaveAs
(Note that this file should be saved as a png).
|
static void |
ScreenshotUtils.takeScreenshotOfElement(IElement element,
File toSaveAs)
You can use this method to take your control pictures.
|
Modifier and Type | Method and Description |
---|---|
void |
ICheckBox.check()
Implementing this method would allow for checking the CheckBox widget
|
void |
ICalendar.chooseToday()
Implementing this method would allow for selecting the current date in
the Calendar widget
|
void |
IInteractiveElement.click()
Implementing this method would allow for clicking on the interactive
element
|
void |
IInteractiveElement.clickAndHold()
Implementing this method would allow for clicking on an element and
remaining that way
|
void |
ICalendar.close()
Implementing this method would allow for closing the Calendar widget
|
void |
ISelectList.deselectAllOptions()
Implementing this method would allow for deselecting any options in the
list that have been selected
|
void |
IInteractiveElement.doubleClick()
Implementing this method would allow for double clicking on the
interactive element
|
void |
IInteractiveTable.doubleClickRow(int rowNumber)
Implementing this method would allow for double clicking on a specific
row in a table based on the row number
|
void |
IInteractiveTable.doubleClickRow(int rowNumber,
int columnNumber)
Implementing this method would allow for double clicking on a specific
cell in a table based on the row and column numbers
|
void |
IInteractiveTable.doubleClickRow(Map<String,String> item)
Implementing this method would allow for double clicking on a specific
row in a table based on contents of the row
|
void |
IInteractiveTable.doubleClickRow(Map<String,String> item,
int columnNumber)
Implementing this method would allow for double clicking on a specific
cell in a table based on contents of the row
|
void |
IInteractiveTable.doubleClickRowElement(Map<String,Object> item)
Implementing this method would allow for double clicking a specific row
in a table based on contents of the row
|
void |
IInteractiveTable.doubleClickRowElement(Map<String,Object> item,
int columnNumber)
Implementing this method would allow for double clicking a specific cell
in a table based on contents of the row
|
void |
IInteractiveElement.dragAndDrop(IElement element)
Implementing this method would allow for drag and dropping a specific
element
|
void |
IInteractiveElement.dragAndDropByOffset(int xOffset,
int yOffset)
Implementing this method would allow for drag and dropping by a specific
X/Y offset
|
void |
ICalendar.enterDate(String value)
Implementing this method would allow for inputting a specific date into
the Calendar widget
|
void |
IElement.eval(String javascript)
Implementing this method would allow to execute a javascript on the
element
|
void |
IElement.fireEvent(String event)
Implementing this method would allow for forcing an element to fire a
specific event
|
void |
IElement.focusOn()
Implementing this method would allow for the element to be brought into focus
|
String |
IElement.getAttribute(String attributeName)
Implementing this method would allow for getting an attribute of an
element
|
String[] |
IElement.getChildNodesValuesText()
Implementing this method would allow for getting the text of all of this
element's child nodes
|
String |
IElement.getCssValue(String propertyName)
Implementing this method would allow for getting the CSS value given the
properties name
|
String |
IHyperLink.getHref()
Implementing this method would allow for getting the href of the
HyperLink
|
String |
IElement.getInnerHTML()
Returns inner HTML of the element
|
String |
IReadableElement.getLabel()
Implementing this method would allow for getting the ReadableElement's
label as a String
|
String |
IButton.getLabel()
Implementing this method would allow for obtaining the text of a button's
label
|
int |
IElement.getLocationX()
Implementing this method would allow for obtaining the X-coordinate of
the element
|
int |
IElement.getLocationY()
Implementing this method would allow for obtaining the Y-coordinate of
the element
|
List<String> |
ISelectList.getOptions()
Implementing this method would allow for getting all options in the list
|
List<String> |
IDropDown.getOptions()
Implementing this method would allow for obtaining all of the options
from the dropdown widget
|
int |
ITable.getRowNumber(Map<String,String> item)
Implementing this element would allow for getting the row number in a
table that contains specific information
|
String |
ISelectList.getSelectedOption()
Implementing this method would allow for getting the text of the
currently selected option
|
String |
IDropDown.getSelectedOption()
Implementing this method would allow for checking which option was
selected from the dropdown menu
|
List<String> |
ISelectList.getSelectedOptions()
Implementing this method would allow for getting the currently selected
options in the list
|
List<Object[]> |
IInteractiveTable.getSelectedRowsElementsInArray()
Implementing this method would allow for getting all of the elements of
all the selected rows as a list of Object arrays
|
List<Map<String,Object>> |
IInteractiveTable.getSelectedRowsElementsInMap()
Implementing this method would allow for getting all of the key-value
pairs of all the selected rows
|
List<String[]> |
IInteractiveTable.getSelectedRowsInArray()
Implementing this method would allow for getting all of the values of all
the selected rows as a list of String arrays
|
List<Map<String,String>> |
IInteractiveTable.getSelectedRowsInMap()
Implementing this method would allow for getting all of the key-value
pairs of all the selected rows
|
String |
IRadioGroup.getSelectedValue()
Implementing this method would allow for returning selected value on the RadioGroup widget
|
String |
IImage.getSource()
Implementing this method would allow for obtaining the source of the
Image widget
|
int |
ITable.getTableColumnCount()
Implementing this method would allow for getting the total number of
columns in the table
|
List<String[]> |
ITable.getTableDataInArray()
Implementing this method would allow for getting all of the values in
table
|
List<Map<String,String>> |
ITable.getTableDataInMap()
Implementing this method would allow for getting all of text in the table
as a map
|
List<String> |
ITable.getTableHeaders()
Implementing this method would allow for obtaining all of the headers in
a table
|
String |
ITable.getTableRowColumnData(int rowNumber,
int columnNumber)
Implementing this method would allow for getting data from a specific
cell in the table
|
int |
ITable.getTableRowCount()
Implementing this method would allow for getting the total number of rows
in the table
|
String |
IElement.getText()
Implementing this method would allow for obtaining the text of the
Element
|
Object |
IReadableElement.getValue()
Implementing this method would allow for getting the value from a
ReadableElement as an Object
|
List<String> |
IRadioGroup.getValues()
Implementing this method would allow for returning available values on the RadioGroup widget
|
org.openqa.selenium.WebElement |
IElement.getWebElement()
Implementing this method would allow for getting this element as a
WebElement
|
boolean |
IElement.hasText(String text)
Implementing this method would allow for checking to see if the element's
text contains a specific substring
|
void |
IElement.highlight()
Implementing this method would allow for highlighting this element
|
void |
IElement.highlight(String color)
Implementing this method would allow for highlighting this element a
specific color
|
boolean |
IElement.isAttributePresent(String attributeName)
Implementing this method would allow for checking if the element has a
specific attribute
|
boolean |
ICheckBox.isChecked()
Implementing this method would allow being able to tell if the CheckBox
widget is checked or not
|
boolean |
IElement.isElementNotPresent()
Implementing this method would allow for checking if an element is Not
present
|
boolean |
IElement.isElementNotPresent(long timeout)
Implementing this method would allow for checking if an element is Not
present within [timeout] milliseconds
|
boolean |
IElement.isElementPresent()
Implementing this method would allow for checking if an element is
present or not
|
boolean |
IElement.isElementPresent(boolean useJavaXpath)
Implementing this method would allow for checking if an element is
present or not
|
boolean |
IElement.isElementPresent(long time)
Implementing this method would allow for checking if an element is
present or not
|
boolean |
IElement.isElementVisible()
Implementing this method would allow for checking if an element is
visible or not
|
boolean |
IElement.isElementVisible(long time)
Implementing this method would allow for checking if an element is
visible or not within a designated length of time
|
boolean |
IInteractiveElement.isEnabled()
Implementing this method would allow for checking if the interactive
element is enabled
|
boolean |
IElement.isEnabled()
Returns true if the element is enabled.
|
boolean |
ITable.isItemExist(Map<String,String> item)
Implementing this method would allow for checking the table to see if an
item is present in a table
|
boolean |
ICalendar.isOpen()
Implementing this method would allow for checking to see if the Calendar
widget is opened or closed
|
boolean |
IElement.isWithinBoundsOfWindow()
Implementing this method would allow for checking whether an element
is within the bounds of the window
|
void |
IInteractiveElement.keyDown(Keys theKey)
Implementing this method would allow for 'pushing' specific key is down
|
void |
IInteractiveElement.keyUp(Keys theKey)
Implementing this method would allow for releasing specific key
|
void |
IInteractiveElement.mouseMove()
Implementing this method would allow for triggering the mouse move event
on this interactive element
|
void |
IInteractiveElement.mouseMoveOut()
Implementing this method would allow for moving the mouse to an area
outside of the element
|
void |
IInteractiveElement.mouseOver()
Implementing this method would allow for moving the mouse over the
element
|
void |
IInteractiveElement.releaseClickAndHold()
Implementing this method would allow for releasing the element that is
being held
|
void |
IInteractiveElement.rightClick()
Implementing this method would allow for right clicking on the
interactive element
|
void |
IElement.scrollTo()
Implementing this method would allow for the element to be scrolled to on the page
|
void |
IRadioGroup.select(String value)
Implementing this method would allow for selecting a radio button with matching value on the RadioGroup widget based on text value
|
void |
ISelectList.selectMultipleOptions(List<String> options)
Implementing this method would allow for selecting multiple options in
the list based on the text
|
void |
ISelectList.selectOption(String option)
Implementing this method would allow for selecting a specific option from
the list
|
void |
IDropDown.selectOption(String option)
Implementing this method would allow for selecting specific items from a
dropdown menu
|
void |
IInteractiveTable.selectRow(int rowNumber)
Implementing this method would allow for selecting a specific row in a
table based on the row number
|
void |
IInteractiveTable.selectRow(Map<String,String> item)
Implementing this method would allow for selecting a specific row in a
table based on contents of the row
|
void |
IInteractiveTable.selectRowElement(Map<String,Object> item)
Implementing this method would allow for selecting a specific row in a
table based on contents of the row
|
void |
IInteractiveTable.selectRows(int... rowNumbers)
Implementing this method would allow for selecting multiple rows in a
table based on their row numbers
|
void |
IInteractiveTable.selectRows(List<Map<String,String>> items)
Implementing this method would allow for selecting specific rows in a
table based on contents of the rows
|
void |
IInteractiveTable.selectRowsElements(List<Map<String,Object>> items)
Implementing this method would allow for selecting specific rows in a
table based on contents of the row
|
void |
IInteractiveElement.sendKeys(CharSequence keysToSend)
Implementing this method would allow for sending keys to an element like
the down arrow to a textfield to select a value from the type-ahead or
past input
|
void |
IEditableElement.setValue(Object value)
Implementing this method for an editable element would allow for setting
the
|
void |
IInteractiveElement.type(String text)
Implementing this method would allow for typing a value to the said
target
|
void |
ITextField.typeAppend(String text)
Implementing this method would allow for typing in the desired text into
the textfield
|
void |
IInteractiveElement.typeAppend(String text)
Implementing this method would allow for appending to an already typed
value
|
void |
ICheckBox.uncheck()
Implementing this method would allow for unchecking the CheckBox widget
|
void |
IElement.waitForAttribute(String attributeName,
String pattern)
Waits for specific attribute value o match specific pattern within period
of maxRequestTimeout
|
void |
IElement.waitForAttribute(String attributeName,
String pattern,
long timeout)
Waits for specific attribute value to match specific pattern within
period of specified timeout
|
void |
IElement.waitForAttributeEqualTo(String attributeName,
String attributeValue)
Implementing this method would allow for keeping the test from
progressing until an element's attribute has the desired value
|
void |
IElement.waitForAttributeEqualTo(String attributeName,
String attributeValue,
long time)
Implementing this method would allow for keeping the test from
progressing until an element's attribute has the desired value by the
specified amount of time
|
void |
IElement.waitForAttributeNotEqualTo(String attributeName,
String attributeValue)
Implementing this method would allow for keeping the test from
progressing until an element's attribute no longer has the desired value
|
void |
IElement.waitForAttributeNotEqualTo(String attributeName,
String attributeValue,
long time)
Implementing this method would allow for keeping the test from
progressing until an element's attribute no longer has the desired value
by the specified amount of time
|
void |
ICheckBox.waitForChecked()
Implementing this method would allow for waiting until the CheckBox has
been checked
|
void |
ICheckBox.waitForChecked(long timeout)
Implementing this method would allow for waiting until the CheckBox has
been checked
|
void |
IElement.waitForElementNotPresent()
Implementing this method would allow for the test to wait until the
element is no longer present before progressing
|
void |
IElement.waitForElementNotPresent(long time)
Implementing this method would allow for the test to wait a designated
length of time until the element is no longer present before progressing
|
void |
IElement.waitForElementPresent()
Implementing this method would allow for the test to wait until the
element is present before progressing
|
void |
IElement.waitForElementPresent(long time)
Implementing this method would allow for the test to wait a designated
length of time until the element is present before progressing
|
void |
IElement.waitForEnabled()
Waits for element to be enabled within period of maxRequestTimeout
|
void |
IElement.waitForEnabled(long time)
Waits for element to be enabled within period of specified time
|
void |
IElement.waitForNotAttribute(String attributeName,
String pattern)
Waits for specific attribute value to not match specific pattern within
period of maxRequestTimeout
|
void |
IElement.waitForNotAttribute(String attributeName,
String pattern,
long timeout)
Waits for specific attribute value not match specific pattern within
period of specified timeout
|
void |
IElement.waitForNotVisible()
Implementing this method would allow for the test to wait until the
element is no longer visible before progressing
|
void |
IElement.waitForNotVisible(long time)
Implementing this method would allow for the test to wait a designated
length of time until the element is no longer visible before progressing
|
void |
IElement.waitForText()
Implementing this method would allow for keeping the test from
progressing until an element has text
|
void |
IElement.waitForText(long time)
Implementing this method would allow for keeping the test from
progressing until an element has text
|
void |
ICheckBox.waitForUnchecked()
Implementing this method would allow for waiting until the CheckBox has
been unchecked
|
void |
ICheckBox.waitForUnchecked(long timeout)
Implementing this method would allow for waiting until the CheckBox has
been unchecked
|
void |
IElement.waitForVisible()
Implementing this method would allow for the test to wait until the
element is visible before progressing
|
void |
IElement.waitForVisible(long time)
Implementing this method would allow for the test to wait until a
designated length of time the element is visible before progressing
|
Modifier and Type | Method and Description |
---|---|
void |
InteractiveElement.click() |
void |
InteractiveElement.clickAndHold() |
void |
InteractiveElement.doubleClick() |
void |
InteractiveElement.dragAndDrop(IElement element) |
void |
InteractiveElement.dragAndDropByOffset(int xOffset,
int yOffset) |
void |
Element.eval(String javascript)
Executes JavaScript code on the current element in the current frame or
window.
|
protected org.openqa.selenium.WebElement |
Element.findElement()
Find the element using xpath, id, name, class name or tag name
|
void |
Element.fireEvent(String event)
Fires a javascript event on a web element
|
void |
Element.focusOn()
Focus on this element
|
String |
Element.getAttribute(String attributeName) |
String[] |
Element.getChildNodesValuesText()
Returns the text contained in the child nodes of the current element
|
String |
Element.getCssValue(String propertyName) |
String |
Element.getInnerHTML() |
String |
InteractiveElement.getLabel()
Throw Unsupported Operation exception if getLabel() on Interactive element is invoked
|
int |
Element.getLocationX() |
int |
Element.getLocationY() |
String |
Element.getText() |
Object |
InteractiveElement.getValue()
Throw Unsupported Operation exception if getValue() on Interactive element is invoked
|
org.openqa.selenium.WebElement |
Element.getWebElement() |
boolean |
Element.hasText(String text) |
void |
Element.highlight()
highlight an element for the FIND mode
|
void |
Element.highlight(Element.HIGHLIGHT_MODES mode)
Find the current element and highlight it according to the mode
If mode is NONE, do nothing
|
void |
Element.highlight(String colorMode) |
boolean |
Element.isAttributePresent(String attributeName) |
boolean |
Element.isElementNotPresent() |
boolean |
Element.isElementNotPresent(long timeout) |
boolean |
Element.isElementPresent() |
boolean |
Element.isElementPresent(boolean isJavaXPath) |
boolean |
Element.isElementPresent(long timeout) |
boolean |
Element.isElementVisible() |
boolean |
Element.isElementVisible(long timeout) |
boolean |
InteractiveElement.isEnabled() |
boolean |
Element.isEnabled() |
boolean |
Element.isWithinBoundsOfWindow()
Determine if the element is within the bounds of the window
|
void |
InteractiveElement.keyDown(Keys theKey) |
void |
InteractiveElement.keyUp(Keys theKey) |
void |
InteractiveElement.mouseMove() |
void |
InteractiveElement.mouseMoveOut() |
void |
InteractiveElement.mouseOver() |
void |
InteractiveElement.releaseClickAndHold() |
void |
InteractiveElement.rightClick() |
void |
Element.scrollTo()
Scroll to this element
|
void |
InteractiveElement.sendKeys(CharSequence keysToSend) |
void |
InteractiveElement.type(String text) |
void |
InteractiveElement.typeAppend(String text) |
void |
Element.waitForAttribute(String attributeName,
String pattern) |
void |
Element.waitForAttribute(String attributeName,
String pattern,
long timeout) |
void |
Element.waitForAttributeNotEqualTo(String attributeName,
String attributeValue) |
void |
Element.waitForElementNotPresent() |
void |
Element.waitForElementNotPresent(long time) |
void |
Element.waitForElementPresent() |
void |
Element.waitForElementPresent(long time) |
void |
Element.waitForEnabled() |
void |
Element.waitForEnabled(long time) |
void |
Element.waitForNotAttribute(String attributeName,
String pattern) |
void |
Element.waitForNotAttribute(String attributeName,
String pattern,
long timeout) |
void |
Element.waitForNotVisible() |
void |
Element.waitForNotVisible(long time)
Waits for specific element at locator to be not visible within period of
specified time
|
void |
Element.waitForText() |
void |
Element.waitForText(long time) |
void |
Element.waitForVisible() |
void |
Element.waitForVisible(long time)
Waits for specific element at locator to be visible within period of
specified time
|
Modifier and Type | Method and Description |
---|---|
void |
CheckBox.check() |
void |
Select.deselectAllOptions() |
String |
HyperLink.getHref() |
IInteractiveElement |
InteractiveHtmlList.getInteractiveItem(int index) |
List<IInteractiveElement> |
InteractiveHtmlList.getInteractiveItems() |
IElement |
HtmlList.getItem(int iterator) |
int |
HtmlList.getItemCount() |
List<IElement> |
HtmlList.getItems() |
String |
Button.getLabel() |
List<String> |
Select.getOptions() |
List<String> |
DropDown.getOptions() |
int |
Table.getRowNumber(Map<String,String> item) |
String |
Select.getSelectedOption() |
String |
DropDown.getSelectedOption() |
List<String> |
Select.getSelectedOptions() |
String |
RadioGroup.getSelectedValue() |
String |
Image.getSource() |
int |
Table.getTableColumnCount() |
List<String[]> |
Table.getTableDataInArray()
Retrieves the entire HTML table data within tbody (visible data)
|
List<Map<String,String>> |
Table.getTableDataInMap() |
List<String> |
Table.getTableHeaders() |
String |
Table.getTableRowColumnData(int rowNumber,
int columnNumber) |
int |
Table.getTableRowCount() |
Object |
Select.getValue() |
String |
RadioGroup.getValue() |
String |
Input.getValue() |
String |
HyperLink.getValue() |
String |
DropDown.getValue() |
String |
CheckBox.getValue() |
List<String> |
RadioGroup.getValues() |
boolean |
CheckBox.isChecked()
Checks to see if the current checkbox is checked
|
boolean |
Table.isItemExist(Map<String,String> item) |
void |
RadioGroup.select(String value) |
void |
Select.selectMultipleOptions(List<String> options) |
void |
Select.selectOption(String option) |
void |
DropDown.selectOption(String option) |
void |
Select.setValue(Object value) |
void |
RadioGroup.setValue(Object value) |
void |
Input.setValue(Object value) |
void |
DropDown.setValue(Object value) |
void |
CheckBox.setValue(Object value)
Sets the value of the CheckBox
|
void |
Input.typeAppend(String text) |
void |
CheckBox.uncheck() |
void |
CheckBox.waitForChecked()
Waits for element at locator to be checked within period of
maxRequestTimeout
|
void |
CheckBox.waitForChecked(long time)
Waits for element at locator to be checked within period of specified
time
|
void |
CheckBox.waitForUnchecked()
Waits for element at locator to be not checked within period of
maxRequestTimeout
|
void |
CheckBox.waitForUnchecked(long time)
Waits for element at locator to be not checked within period of specified
time
|
Constructor and Description |
---|
Table(org.openqa.selenium.By locator) |
Table(String locator) |
Copyright © 2018. All rights reserved.