public class SeLionSelendroidDriver extends io.selendroid.client.SelendroidDriver implements SeLionAndroidBridgeDriver
SeLionSelendroidDriver
provides facility to add custom CommandExecutor
to
SelendroidDriver
. This class also implements the SeLionAndroidBridgeDriver
interface to expose
methods for UiObject
and its subclasses.io.selendroid.client.SelendroidDriver.RemoteAdbConnection
org.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.RemoteWebDriver.When
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
Constructor and Description |
---|
SeLionSelendroidDriver(org.openqa.selenium.Capabilities caps) |
SeLionSelendroidDriver(org.openqa.selenium.remote.CommandExecutor commandExecutor,
org.openqa.selenium.Capabilities caps) |
SeLionSelendroidDriver(URL url,
org.openqa.selenium.Capabilities caps) |
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.
|
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 |
scrollDown()
Scroll the screen down.
|
void |
scrollLeft()
Scroll the screen to the left.
|
void |
scrollRight()
Scroll the screen to the right.
|
void |
scrollUp()
Scroll the screen up.
|
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 . |
addCallLog, backgroundApp, callExtension, callExtension, context, gc, getAdbConnection, getBrightness, getConfiguration, getContext, getContextHandles, getMultiTouchScreen, getOrientation, getTouch, isAirplaneModeEnabled, readCallLog, resumeApp, roll, rotate, setAirplaneMode, setBrightness, setConfiguration, setSystemProperty
close, execute, execute, executeAsyncScript, executeScript, findElement, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getKeyboard, getMouse, getPageSource, getScreenshotAs, getSessionId, getTitle, getW3CStandardComplianceLevel, getWindowHandle, getWindowHandles, log, manage, navigate, quit, setCommandExecutor, setElementConverter, setErrorHandler, setFileDetector, setFoundBy, setLogLevel, setSessionId, startClient, startSession, startSession, stopClient, switchTo, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findElement
public SeLionSelendroidDriver(org.openqa.selenium.Capabilities caps) throws Exception
Exception
public SeLionSelendroidDriver(URL url, org.openqa.selenium.Capabilities caps) throws Exception
Exception
public void clearText(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
WebElement
.clearText
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void click(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
click
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void clickBottomRight(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
clickBottomRight
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void clickTopLeft(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
clickTopLeft
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public String getText(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
getText
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isCheckable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isCheckable
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isChecked(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isChecked
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isClickable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isClickable
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isEnabled(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isEnabled
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isFocusable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isFocusable
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isFocused(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isFocused
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isLongClickable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isLongClickable
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isScrollable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isScrollable
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public boolean isSelected(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
isSelected
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void longClick(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
longClick
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void longClickBottomRight(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
longClickBottomRight
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void longClickTopLeft(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
longClickTopLeft
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void setText(org.openqa.selenium.WebElement webElement, String text)
SeLionAndroidBridgeDriver
WebElement
, after clearing the field's content.setText
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.text
- String to set.public void scrollLeft()
public void scrollRight()
public void scrollUp()
public void scrollDown()
public void swipeLeft(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
WebElement
. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.swipeLeft
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void swipeRight(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
WebElement
. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.swipeRight
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void swipeUp(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
WebElement
. The swipe gesture can be performed over any surface. The
targeted UI element does not need to be scrollable.swipeUp
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void swipeDown(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriver
WebElement
. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.swipeDown
in interface SeLionAndroidBridgeDriver
webElement
- Instance of WebElement
.public void swipe(int startx, int starty, int endx, int endy)
SeLionAndroidBridgeDriver
swipe
in interface SeLionAndroidBridgeDriver
startx
- x of start pointstarty
- y of start pointendx
- x of end pointendy
- y of end pointCopyright © 2016 PayPal Open Source. All rights reserved.