public interface SeLionAndroidBridgeDriver
SeLionAndroidBridgeDriver
acts as a single level of abstraction for the page object model implementation
for android mobile drivers. UserinterfaceObject
class depends on this abstraction to delegate calls to the
respective driver implementations.Modifier and Type | Method and Description |
---|---|
void |
clearText(org.openqa.selenium.WebElement webElement)
Clears the existing text contents represented by the
WebElement . |
void |
click(org.openqa.selenium.WebElement webElement)
Performs a click at the center of the visible bounds of the UI element represented by this UiObject.
|
void |
clickBottomRight(org.openqa.selenium.WebElement webElement)
Clicks the bottom and right corner of the UI element.
|
void |
clickTopLeft(org.openqa.selenium.WebElement webElement)
Clicks the top and left corner of the UI element.
|
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by)
Finds the
WebElement using the underlying RemoteWebDriver implementation. |
String |
getText(org.openqa.selenium.WebElement webElement)
Reads the text property of the UI element.
|
boolean |
isCheckable(org.openqa.selenium.WebElement webElement)
Checks if the UI element's checkable property is currently true.
|
boolean |
isChecked(org.openqa.selenium.WebElement webElement)
Checks if the UI element's checked property is currently true.
|
boolean |
isClickable(org.openqa.selenium.WebElement webElement)
Checks if the UI element's clickable property is currently true.
|
boolean |
isEnabled(org.openqa.selenium.WebElement webElement)
Checks if the UI element's enabled property is currently true.
|
boolean |
isFocusable(org.openqa.selenium.WebElement webElement)
Checks if the UI element's focusable property is currently true.
|
boolean |
isFocused(org.openqa.selenium.WebElement webElement)
Checks if the UI element's focused property is currently true.
|
boolean |
isLongClickable(org.openqa.selenium.WebElement webElement)
Checks if the view's long-clickable property is currently true.
|
boolean |
isScrollable(org.openqa.selenium.WebElement webElement)
Checks if the view's scrollable property is currently true.
|
boolean |
isSelected(org.openqa.selenium.WebElement webElement)
Checks if the UI element's selected property is currently true.
|
void |
longClick(org.openqa.selenium.WebElement webElement)
Long clicks the center of the visible bounds of the UI element.
|
void |
longClickBottomRight(org.openqa.selenium.WebElement webElement)
Long clicks bottom and right corner of the UI element.
|
void |
longClickTopLeft(org.openqa.selenium.WebElement webElement)
Long clicks on the top and left corner of the UI element.
|
void |
setText(org.openqa.selenium.WebElement webElement,
String text)
Sets the text in an editable field represented by
WebElement , after clearing the field's content. |
void |
swipe(int startx,
int starty,
int endx,
int endy)
preform a swipe action on the device
|
void |
swipeDown(org.openqa.selenium.WebElement webElement)
Performs the swipe down action on the
WebElement . |
void |
swipeLeft(org.openqa.selenium.WebElement webElement)
Performs the swipe left action on the
WebElement . |
void |
swipeRight(org.openqa.selenium.WebElement webElement)
Performs the swipe right action on the
WebElement . |
void |
swipeUp(org.openqa.selenium.WebElement webElement)
Performs the swipe up action on the
WebElement . |
org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
WebElement
using the underlying RemoteWebDriver
implementation.by
- Instance of By
.WebElement
found for the corresponding By
void clearText(org.openqa.selenium.WebElement webElement)
WebElement
.webElement
- Instance of WebElement
.void click(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.void clickBottomRight(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.void clickTopLeft(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.String getText(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isCheckable(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isChecked(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isClickable(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isEnabled(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isFocusable(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isFocused(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isLongClickable(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isScrollable(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.boolean isSelected(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.void longClick(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.void longClickBottomRight(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.void longClickTopLeft(org.openqa.selenium.WebElement webElement)
webElement
- Instance of WebElement
.void setText(org.openqa.selenium.WebElement webElement, String text)
WebElement
, after clearing the field's content.webElement
- Instance of WebElement
.text
- String to set.void swipeLeft(org.openqa.selenium.WebElement webElement)
WebElement
. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.webElement
- Instance of WebElement
.void swipeRight(org.openqa.selenium.WebElement webElement)
WebElement
. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.webElement
- Instance of WebElement
.void swipeUp(org.openqa.selenium.WebElement webElement)
WebElement
. The swipe gesture can be performed over any surface. The
targeted UI element does not need to be scrollable.webElement
- Instance of WebElement
.void swipeDown(org.openqa.selenium.WebElement webElement)
WebElement
. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.webElement
- Instance of WebElement
.void swipe(int startx, int starty, int endx, int endy)
startx
- x of start pointstarty
- y of start pointendx
- x of end pointendy
- y of end pointCopyright © 2016 PayPal Open Source. All rights reserved.