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.RemoteAdbConnectionorg.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.RemoteWebDriver.Whenorg.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, setSystemPropertyclose, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindElementpublic SeLionSelendroidDriver(org.openqa.selenium.Capabilities caps)
throws Exception
Exceptionpublic SeLionSelendroidDriver(URL url, org.openqa.selenium.Capabilities caps) throws Exception
Exceptionpublic void clearText(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverWebElement.clearText in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void click(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverclick in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void clickBottomRight(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverclickBottomRight in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void clickTopLeft(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverclickTopLeft in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public String getText(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDrivergetText in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isCheckable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisCheckable in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isChecked(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisChecked in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isClickable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisClickable in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isEnabled(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisEnabled in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isFocusable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisFocusable in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isFocused(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisFocused in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isLongClickable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisLongClickable in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isScrollable(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisScrollable in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public boolean isSelected(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverisSelected in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void longClick(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverlongClick in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void longClickBottomRight(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverlongClickBottomRight in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void longClickTopLeft(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverlongClickTopLeft in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void setText(org.openqa.selenium.WebElement webElement,
String text)
SeLionAndroidBridgeDriverWebElement, after clearing the field's content.setText in interface SeLionAndroidBridgeDriverwebElement - 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)
SeLionAndroidBridgeDriverWebElement. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.swipeLeft in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void swipeRight(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverWebElement. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.swipeRight in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void swipeUp(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverWebElement. The swipe gesture can be performed over any surface. The
targeted UI element does not need to be scrollable.swipeUp in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void swipeDown(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverWebElement. The swipe gesture can be performed over any surface.
The targeted UI element does not need to be scrollable.swipeDown in interface SeLionAndroidBridgeDriverwebElement - Instance of WebElement.public void swipe(int startx,
int starty,
int endx,
int endy)
SeLionAndroidBridgeDriverswipe in interface SeLionAndroidBridgeDriverstartx - x of start pointstarty - y of start pointendx - x of end pointendy - y of end pointCopyright © 2016 PayPal Open Source. All rights reserved.