public interface IInteractiveElement extends IReadableElement
Modifier and Type | Method and Description |
---|---|
void |
click()
Implementing this method would allow for clicking on the interactive
element
|
void |
clickAndHold()
Implementing this method would allow for clicking on an element and
remaining that way
|
void |
doubleClick()
Implementing this method would allow for double clicking on the
interactive element
|
void |
dragAndDrop(IElement element)
Implementing this method would allow for drag and dropping a specific
element
|
void |
dragAndDropByOffset(int xOffset,
int yOffset)
Implementing this method would allow for drag and dropping by a specific
X/Y offset
|
boolean |
isEnabled()
Implementing this method would allow for checking if the interactive
element is enabled
|
void |
keyDown(Keys theKey)
Implementing this method would allow for 'pushing' specific key is down
|
void |
keyUp(Keys theKey)
Implementing this method would allow for releasing specific key
|
void |
mouseMove()
Implementing this method would allow for triggering the mouse move event
on this interactive element
|
void |
mouseMoveOut()
Implementing this method would allow for moving the mouse to an area
outside of the element
|
void |
mouseOver()
Implementing this method would allow for moving the mouse over the
element
|
void |
releaseClickAndHold()
Implementing this method would allow for releasing the element that is
being held
|
void |
rightClick()
Implementing this method would allow for right clicking on the
interactive element
|
void |
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 |
type(String text)
Implementing this method would allow for typing a value to the said
target
|
void |
typeAppend(String text)
Implementing this method would allow for appending to an already typed
value
|
getLabel, getValue
eval, fireEvent, focusOn, getAttribute, getByLocator, getChildNodesValuesText, getCssValue, getInnerHTML, getLocationX, getLocationY, getLocator, getText, getWebElement, hasText, highlight, highlight, isAttributePresent, isElementNotPresent, isElementNotPresent, isElementPresent, isElementPresent, isElementPresent, isElementVisible, isElementVisible, isWithinBoundsOfWindow, scrollTo, waitForAttribute, waitForAttribute, waitForAttributeEqualTo, waitForAttributeEqualTo, waitForAttributeNotEqualTo, waitForAttributeNotEqualTo, waitForElementNotPresent, waitForElementNotPresent, waitForElementPresent, waitForElementPresent, waitForEnabled, waitForEnabled, waitForNotAttribute, waitForNotAttribute, waitForNotVisible, waitForNotVisible, waitForText, waitForText, waitForVisible, waitForVisible
void click() throws WidgetException
WidgetException
void doubleClick() throws WidgetException
WidgetException
void rightClick() throws WidgetException
WidgetException
boolean isEnabled() throws WidgetException
isEnabled
in interface IElement
WidgetException
void dragAndDrop(IElement element) throws WidgetException
element
- - the element that is to be drag and droppedWidgetException
void dragAndDropByOffset(int xOffset, int yOffset) throws WidgetException
xOffset
- yOffset
- WidgetException
void keyDown(Keys theKey) throws WidgetException
theKey
- - the key to be 'pushed' downWidgetException
void keyUp(Keys theKey) throws WidgetException
theKey
- - the key to be releasedWidgetException
void clickAndHold() throws WidgetException
WidgetException
void releaseClickAndHold() throws WidgetException
WidgetException
void sendKeys(CharSequence keysToSend) throws WidgetException
keysToSend
- - the keys to be sent to the interactive elementWidgetException
void type(String text) throws WidgetException
text
- - the text you want typed onto the interactive elementWidgetException
void typeAppend(String text) throws WidgetException
text
- Text to appendWidgetException
void mouseMove() throws WidgetException
WidgetException
void mouseMoveOut() throws WidgetException
WidgetException
void mouseOver() throws WidgetException
WidgetException
Copyright © 2018. All rights reserved.