|
Ajocado API 1.0.0.Alpha2 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ElementLocator | |
|---|---|
| org.jboss.arquillian.ajocado.framework | |
| org.jboss.arquillian.ajocado.locator | |
| Uses of ElementLocator in org.jboss.arquillian.ajocado.framework |
|---|
| Methods in org.jboss.arquillian.ajocado.framework that return ElementLocator | |
|---|---|
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. |
| Methods in org.jboss.arquillian.ajocado.framework with parameters of type ElementLocator | |
|---|---|
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.dragdrop(ElementLocator<?> locator,
Offset movementsString)
deprecated - use dragAndDrop instead |
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. |
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. |
String |
ExtendedTypedSelenium.getStyle(ElementLocator<?> elementLocator,
CssProperty property)
Get current style value of element given by locator. |
String |
ExtendedTypedSelenium.getStyle(ElementLocator<?> elementLocator,
String property)
Deprecated. |
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 |
ExtendedTypedSelenium.isDisplayed(ElementLocator<?> elementLocator)
Returns whether the element is displayed on the page. |
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,
String keySequence)
Simulates a user pressing a key (without releasing it yet). |
void |
TypedSelenium.keyPress(ElementLocator<?> locator,
String keySequence)
Simulates a user pressing and releasing a key. |
void |
TypedSelenium.keyUp(ElementLocator<?> locator,
String keySequence)
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) |
| Uses of ElementLocator in org.jboss.arquillian.ajocado.locator |
|---|
| Classes in org.jboss.arquillian.ajocado.locator with type parameters of type ElementLocator | |
|---|---|
interface |
AttributeLocator<E extends ElementLocator<E>>
Specific locator for attributes. |
interface |
ElementLocator<T extends ElementLocator<T>>
Locator for locating elements on page. |
| Subinterfaces of ElementLocator in org.jboss.arquillian.ajocado.locator | |
|---|---|
interface |
IterableLocator<T extends IterableLocator<T>>
Locator which can iterate over it's descendant. |
| Methods in org.jboss.arquillian.ajocado.locator that return ElementLocator | |
|---|---|
ElementLocator<T> |
ElementLocator.format(Object... args)
|
ElementLocator<E> |
AttributeLocator.getAssociatedElement()
Returns the underlying element what associates attribute given by this locator to |
|
Ajocado API 1.0.0.Alpha2 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||