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, getValueeval, 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, waitForVisiblevoid click()
throws WidgetException
WidgetExceptionvoid doubleClick()
throws WidgetException
WidgetExceptionvoid rightClick()
throws WidgetException
WidgetExceptionboolean isEnabled()
throws WidgetException
isEnabled in interface IElementWidgetExceptionvoid dragAndDrop(IElement element) throws WidgetException
element - - the element that is to be drag and droppedWidgetExceptionvoid dragAndDropByOffset(int xOffset,
int yOffset)
throws WidgetException
xOffset - yOffset - WidgetExceptionvoid keyDown(Keys theKey) throws WidgetException
theKey - - the key to be 'pushed' downWidgetExceptionvoid keyUp(Keys theKey) throws WidgetException
theKey - - the key to be releasedWidgetExceptionvoid clickAndHold()
throws WidgetException
WidgetExceptionvoid releaseClickAndHold()
throws WidgetException
WidgetExceptionvoid sendKeys(CharSequence keysToSend) throws WidgetException
keysToSend - - the keys to be sent to the interactive elementWidgetExceptionvoid type(String text) throws WidgetException
text - - the text you want typed onto the interactive elementWidgetExceptionvoid typeAppend(String text) throws WidgetException
text - Text to appendWidgetExceptionvoid mouseMove()
throws WidgetException
WidgetExceptionvoid mouseMoveOut()
throws WidgetException
WidgetExceptionvoid mouseOver()
throws WidgetException
WidgetExceptionCopyright © 2018. All rights reserved.