public class SeLionAppiumAndroidDriver extends io.appium.java_client.android.AndroidDriver<org.openqa.selenium.WebElement> implements SeLionAndroidBridgeDriver
SeLionAppiumAndroidDriver provides facility to add custom CommandExecutor to
AndroidDriver. This class also implements the SeLionAndroidBridgeDriver interface to expose
methods for UiObject and its subclasses.org.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 |
|---|
SeLionAppiumAndroidDriver(org.openqa.selenium.remote.CommandExecutor commandExecutor,
org.openqa.selenium.Capabilities caps,
URL url) |
SeLionAppiumAndroidDriver(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 |
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. |
currentActivity, endTestCoverage, findElementByAndroidUIAutomator, findElementsByAndroidUIAutomator, getConnection, ignoreUnimportantViews, isLocked, lockDevice, longPressKeyCode, longPressKeyCode, openNotifications, pressKeyCode, pressKeyCode, pushFile, pushFile, setConnection, startActivity, startActivity, startActivity, startActivity, startActivity, swipe, toggleLocationServices, unlockDevicecloseApp, context, doSwipe, execute, findElements, findElements, findElementsByAccessibilityId, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, getAppStringMap, getAppStringMap, getAppStringMap, getContext, getContextHandles, getDeviceTime, getExecuteMethod, getOrientation, getRemoteAddress, getSessionDetails, getSettings, hideKeyboard, installApp, isAppInstalled, launchApp, location, performMultiTouchAction, performTouchAction, pinch, pinch, pullFile, pullFolder, removeApp, resetApp, rotate, runAppInBackground, setLocation, setSetting, substituteMobilePlatform, tap, tap, zoom, zoomclose, executeAsyncScript, executeScript, get, getCapabilities, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getFileDetector, getKeyboard, 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 SeLionAppiumAndroidDriver(URL url, org.openqa.selenium.Capabilities caps)
public SeLionAppiumAndroidDriver(org.openqa.selenium.remote.CommandExecutor commandExecutor,
org.openqa.selenium.Capabilities caps,
URL url)
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 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 clearText(org.openqa.selenium.WebElement webElement)
SeLionAndroidBridgeDriverWebElement.clearText 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 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.