| Package | Description |
|---|---|
| org.jboss.arquillian.ajocado.framework | |
| org.jboss.arquillian.ajocado.locator.attribute | |
| org.jboss.arquillian.ajocado.locator.element |
| Modifier and Type | Method and Description |
|---|---|
ElementLocator<?> |
TypedSelenium.assignId(ElementLocator<?> locator,
String identifier)
Temporarily sets the "id" attribute of the specified element, so you can locate it in the future using its ID
rather than a slow/complicated XPath.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TypedSelenium.addSelection(ElementLocator<?> locator,
OptionLocator<?> optionLocator)
Add a selection to the set of selected options in a multi-select element using an option locator.
|
ElementLocator<?> |
TypedSelenium.assignId(ElementLocator<?> locator,
String identifier)
Temporarily sets the "id" attribute of the specified element, so you can locate it in the future using its ID
rather than a slow/complicated XPath.
|
boolean |
ExtendedTypedSelenium.belongsClass(ElementLocator<?> elementLocator,
String className)
Checks if element given by locator is member of CSS class given by className.
|
void |
TypedSelenium.check(ElementLocator<?> locator)
Check a toggle-button (checkbox/radio)
|
void |
ExtendedTypedSelenium.check(ElementLocator<?> locator,
boolean checked)
Check a toggle-button (checkbox/radio) on or off.
|
void |
TypedSelenium.click(ElementLocator<?> locator)
Clicks on a link, button, checkbox or radio button.
|
void |
TypedSelenium.clickAt(ElementLocator<?> locator,
Point coords)
Clicks on a link, button, checkbox or radio button.
|
void |
TypedSelenium.contextMenu(ElementLocator<?> locator)
Simulates opening the context menu for the specified element (as might happen if the user "right-clicked" on the
element).
|
void |
TypedSelenium.contextMenuAt(ElementLocator<?> locator,
Point coords)
Simulates opening the context menu for the specified element (as might happen if the user "right-clicked" on the
element).
|
void |
TypedSelenium.doubleClick(ElementLocator<?> locator)
Double clicks on a link, button, checkbox or radio button.
|
void |
TypedSelenium.doubleClickAt(ElementLocator<?> locator,
Point coords)
Doubleclicks on a link, button, checkbox or radio button.
|
void |
TypedSelenium.dragAndDrop(ElementLocator<?> locator,
Offset movementsString)
Drags an element a certain distance and then drops it
|
void |
TypedSelenium.dragAndDropToObject(ElementLocator<?> locatorOfObjectToBeDragged,
ElementLocator<?> locatorOfDragDestinationObject)
Drags an element and drops it on another element
|
void |
TypedSelenium.dragAndDropToObject(ElementLocator<?> locatorOfObjectToBeDragged,
ElementLocator<?> locatorOfDragDestinationObject)
Drags an element and drops it on another element
|
void |
TypedSelenium.fireEvent(ElementLocator<?> locator,
Event event)
Explicitly simulate an event, to trigger the corresponding handler.
|
void |
TypedSelenium.focus(ElementLocator<?> locator)
Move the focus to the specified element; for example, if the element is an input field, move the cursor to that
field.
|
String |
TypedSelenium.getAttribute(ElementLocator<?> elementLocator,
Attribute attribute)
Gets the value of an element attribute.
|
int |
TypedSelenium.getCursorPosition(ElementLocator<?> locator)
Retrieves the text cursor position in the given input element or textarea; beware, this may not work perfectly on
all browsers.
|
Dimension |
TypedSelenium.getElementDimension(ElementLocator<?> locator)
Retrievers the element dimensions (width, height)
|
int |
TypedSelenium.getElementHeight(ElementLocator<?> locator)
Retrieves the height of an element
|
int |
TypedSelenium.getElementIndex(ElementLocator<?> locator)
Get the relative index of an element to its parent (starting from 0).
|
Point |
TypedSelenium.getElementPosition(ElementLocator<?> locator)
Retrieves the position of an element
|
int |
TypedSelenium.getElementPositionLeft(ElementLocator<?> locator)
Retrieves the horizontal position of an element
|
int |
TypedSelenium.getElementPositionTop(ElementLocator<?> locator)
Retrieves the vertical position of an element
|
int |
TypedSelenium.getElementWidth(ElementLocator<?> locator)
Retrieves the width of an element
|
String |
TypedSelenium.getSelectedId(ElementLocator<?> selectLocator)
Gets option element ID for selected option in the specified select element.
|
List<String> |
TypedSelenium.getSelectedIds(ElementLocator<?> selectLocator)
Gets all option element IDs for selected options in the specified select or multi-select element.
|
int |
TypedSelenium.getSelectedIndex(ElementLocator<?> selectLocator)
Gets option index (option number, starting at 0) for selected option in the specified select element.
|
List<Integer> |
TypedSelenium.getSelectedIndexes(ElementLocator<?> selectLocator)
Gets all option indexes (option number, starting at 0) for selected options in the specified select or
multi-select element.
|
String |
TypedSelenium.getSelectedLabel(ElementLocator<?> selectLocator)
Gets option label (visible text) for selected option in the specified select element.
|
List<String> |
TypedSelenium.getSelectedLabels(ElementLocator<?> selectLocator)
Gets all option labels (visible text) for selected options in the specified select or multi-select element.
|
String |
TypedSelenium.getSelectedValue(ElementLocator<?> selectLocator)
Gets option value (value attribute) for selected option in the specified select element.
|
List<String> |
TypedSelenium.getSelectedValues(ElementLocator<?> selectLocator)
Gets all option values (value attributes) for selected options in the specified select or multi-select element.
|
List<String> |
TypedSelenium.getSelectOptions(ElementLocator<?> selectLocator)
Gets all option labels in the specified select drop-down.
|
<R,T extends CssResolver<R>> |
ExtendedTypedSelenium.getStyle(ElementLocator<?> elementLocator,
T cssResolver)
Get current style value of element given by locator.
|
String |
TypedSelenium.getText(ElementLocator<?> locator)
Gets the text of an element.
|
String |
TypedSelenium.getValue(ElementLocator<?> locator)
Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter).
|
void |
TypedSelenium.highlight(ElementLocator<?> locator)
Briefly changes the backgroundColor of the specified element yellow.
|
boolean |
TypedSelenium.isChecked(ElementLocator<?> locator)
Gets whether a toggle-button (checkbox/radio) is checked.
|
boolean |
TypedSelenium.isEditable(ElementLocator<?> locator)
Determines whether the specified input element is editable, ie hasn't been disabled.
|
boolean |
TypedSelenium.isElementPresent(ElementLocator<?> locator)
Verifies that the specified element is somewhere on the page.
|
boolean |
TypedSelenium.isOrdered(ElementLocator<?> locator1,
ElementLocator<?> locator2)
Check if these two elements have same parent and are ordered siblings in the DOM.
|
boolean |
TypedSelenium.isOrdered(ElementLocator<?> locator1,
ElementLocator<?> locator2)
Check if these two elements have same parent and are ordered siblings in the DOM.
|
boolean |
TypedSelenium.isSomethingSelected(ElementLocator<?> selectLocator)
Determines whether some option in a drop-down menu is selected.
|
boolean |
TypedSelenium.isVisible(ElementLocator<?> locator)
Determines if the specified element is visible.
|
void |
TypedSelenium.keyDown(ElementLocator<?> locator,
char character)
Simulates a user pressing a key (without releasing it yet).
|
void |
TypedSelenium.keyDown(ElementLocator<?> locator,
KeyCode keyCode)
Simulates a user pressing a key (without releasing it yet).
|
void |
TypedSelenium.keyPress(ElementLocator<?> locator,
char character)
Simulates a user pressing and releasing a key.
|
void |
TypedSelenium.keyPress(ElementLocator<?> locator,
KeyCode keyCode)
Simulates a user pressing and releasing a key.
|
void |
TypedSelenium.keyUp(ElementLocator<?> locator,
char character)
Simulates a user releasing a key.
|
void |
TypedSelenium.keyUp(ElementLocator<?> locator,
KeyCode keyCode)
Simulates a user releasing a key.
|
void |
TypedSelenium.mouseDown(ElementLocator<?> locator)
Simulates a user pressing the left mouse button (without releasing it yet) on the specified element.
|
void |
TypedSelenium.mouseDownAt(ElementLocator<?> locator,
Point coords)
Simulates a user pressing the left mouse button (without releasing it yet) at the specified location.
|
void |
TypedSelenium.mouseDownRight(ElementLocator<?> locator)
Simulates a user pressing the right mouse button (without releasing it yet) on the specified element.
|
void |
TypedSelenium.mouseDownRightAt(ElementLocator<?> locator,
Point coords)
Simulates a user pressing the right mouse button (without releasing it yet) at the specified location.
|
void |
TypedSelenium.mouseMove(ElementLocator<?> locator)
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.
|
void |
TypedSelenium.mouseMoveAt(ElementLocator<?> locator,
Point coords)
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.
|
void |
TypedSelenium.mouseOut(ElementLocator<?> locator)
Simulates a user moving the mouse pointer away from the specified element.
|
void |
ExtendedTypedSelenium.mouseOutAt(ElementLocator<?> elementLocator,
Point point)
Simulates a user hovering a mouse out of the specified element at specific coordinates relative to element.
|
void |
TypedSelenium.mouseOver(ElementLocator<?> locator)
Simulates a user hovering a mouse over the specified element.
|
void |
ExtendedTypedSelenium.mouseOverAt(ElementLocator<?> elementLocator,
Point point)
Simulates a user hovering a mouse over the specified element at specific coordinates relative to element.
|
void |
TypedSelenium.mouseUp(ElementLocator<?> locator)
Simulates the event that occurs when the user releases the mouse button (i.e., stops holding the button down) on
the specified element.
|
void |
TypedSelenium.mouseUpAt(ElementLocator<?> locator,
Point coords)
Simulates the event that occurs when the user releases the mouse button (i.e., stops holding the button down) at
the specified location.
|
void |
TypedSelenium.mouseUpRight(ElementLocator<?> locator)
Simulates the event that occurs when the user releases the right mouse button (i.e., stops holding the button
down) on the specified element.
|
void |
TypedSelenium.mouseUpRightAt(ElementLocator<?> locator,
Point coords)
Simulates the event that occurs when the user releases the right mouse button (i.e., stops holding the button
down) at the specified location.
|
void |
TypedSelenium.removeAllSelections(ElementLocator<?> locator)
Unselects all of the selected options in a multi-select element.
|
void |
TypedSelenium.removeSelection(ElementLocator<?> locator,
OptionLocator<?> optionLocator)
Remove a selection from the set of selected options in a multi-select element using an option locator.
|
void |
ExtendedTypedSelenium.scrollIntoView(ElementLocator<?> elementLocator,
boolean alignToTop)
Aligns screen to top (resp.
|
void |
TypedSelenium.select(ElementLocator<?> selectLocator,
OptionLocator<?> optionLocator)
Select an option from a drop-down using an option locator.
|
void |
TypedSelenium.setCursorPosition(ElementLocator<?> locator,
int position)
Moves the text cursor to the specified position in the given input element or textarea.
|
void |
TypedSelenium.submit(ElementLocator<?> formLocator)
Submit the specified form.
|
void |
TypedSelenium.type(ElementLocator<?> locator,
String value)
Sets the value of an input field, as though you typed it in.
|
void |
TypedSelenium.typeKeys(ElementLocator<?> locator,
String value)
Simulates keystroke events on the specified element, as though you typed the value key-by-key.
|
void |
TypedSelenium.uncheck(ElementLocator<?> locator)
Uncheck a toggle-button (checkbox/radio)
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
AttributeLocator<E extends ElementLocator<E>>
Specific locator for attributes.
|
class |
DefaultAttributeLocator<E extends ElementLocator<E>>
Default implementation of locator for element's attributes.
|
| Modifier and Type | Method and Description |
|---|---|
ElementLocator<E> |
DefaultAttributeLocator.getAssociatedElement() |
ElementLocator<E> |
AttributeLocator.getAssociatedElement()
Returns the underlying element what associates attribute given by this locator to
|
| Constructor and Description |
|---|
DefaultAttributeLocator(ElementLocator<E> elementLocator,
Attribute attribute)
Instantiates a attribute locator using given elementLocator and the specific attribute.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractElementLocator<T extends ElementLocator<T>>
Abstract implementation of element locator able to derive attributes for itself.
|
interface |
ElementLocator<T extends ElementLocator<T>>
Locator for locating elements on page.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CompoundableLocator<T extends CompoundableLocator<T>>
Defines element locators which can be used to derive child and generally descendant elements by given locator by
composition by composition.
|
interface |
ExtendedLocator<T extends ExtendedLocator<T>>
Locator which is iterable and compoundable - it means you can iterate through it's descendants (
IterableLocator) and can derive it's descendants using composition of locators (CompoundableLocator). |
interface |
FilterableLocator<T extends FilterableLocator<T>>
Defines element locators which can be used to derive new locators by defining filters.
|
interface |
IterableLocator<T extends IterableLocator<T>>
Locator which can iterate over it's descendant.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractElementLocator<T extends ElementLocator<T>>
Abstract implementation of element locator able to derive attributes for itself.
|
class |
AbstractIterableLocator<T extends IterableLocator<T>>
Abstract implementation of locator which can iterate over it's descendant.
|
| Modifier and Type | Method and Description |
|---|---|
ElementLocator<T> |
AbstractElementLocator.format(Object... args) |
ElementLocator<T> |
ElementLocator.format(Object... args) |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.