public class SelendroidDriver extends org.openqa.selenium.remote.RemoteWebDriver implements org.openqa.selenium.interactions.HasTouchScreen, HasMultiTouchScreen, ScreenBrightness, org.openqa.selenium.Rotatable, Configuration, AdbSupport, org.openqa.selenium.ContextAware, SetsSystemProperties, CallsGc
| Modifier and Type | Class and Description |
|---|---|
class |
SelendroidDriver.RemoteAdbConnection |
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 |
|---|
SelendroidDriver(org.openqa.selenium.Capabilities caps) |
SelendroidDriver(URL url,
org.openqa.selenium.Capabilities caps) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallLog(CallLogEntry log) |
void |
backgroundApp()
Sends app under test to background.
|
Object |
callExtension(String extensionMethod) |
Object |
callExtension(String extensionMethod,
Map<String,?> parameters) |
org.openqa.selenium.WebDriver |
context(String name) |
void |
gc()
Synchronously calls "System.gc()" on device.
|
AdbConnection |
getAdbConnection() |
int |
getBrightness() |
Map<String,Object> |
getConfiguration(DriverCommand command) |
String |
getContext() |
Set<String> |
getContextHandles() |
MultiTouchScreen |
getMultiTouchScreen() |
org.openqa.selenium.ScreenOrientation |
getOrientation() |
org.openqa.selenium.interactions.TouchScreen |
getTouch() |
boolean |
isAirplaneModeEnabled() |
List<CallLogEntry> |
readCallLog() |
void |
resumeApp()
Bring app under test back to foreground with its previous state.
|
void |
roll(int dimensionX,
int dimensionY) |
void |
rotate(org.openqa.selenium.ScreenOrientation orientation) |
void |
setAirplaneMode(boolean enabled) |
void |
setBrightness(int desiredBrightness) |
void |
setConfiguration(DriverCommand command,
String key,
Object value) |
void |
setSystemProperty(String propertyName,
String value)
Sets a Java System Property.
|
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, toStringpublic SelendroidDriver(URL url, org.openqa.selenium.Capabilities caps) throws Exception
Exceptionpublic org.openqa.selenium.interactions.TouchScreen getTouch()
getTouch in interface org.openqa.selenium.interactions.HasTouchScreenpublic void roll(int dimensionX,
int dimensionY)
public MultiTouchScreen getMultiTouchScreen()
getMultiTouchScreen in interface HasMultiTouchScreenpublic int getBrightness()
getBrightness in interface ScreenBrightnesspublic void setBrightness(int desiredBrightness)
setBrightness in interface ScreenBrightnessdesiredBrightness - The brightness to set the screen to, as a percentage.public void rotate(org.openqa.selenium.ScreenOrientation orientation)
rotate in interface org.openqa.selenium.Rotatablepublic org.openqa.selenium.ScreenOrientation getOrientation()
getOrientation in interface org.openqa.selenium.Rotatablepublic void setConfiguration(DriverCommand command, String key, Object value)
setConfiguration in interface Configurationcommand - The driver command to configure from Interface DriverCommandkey - The keyvalue - value of the configurationpublic Map<String,Object> getConfiguration(DriverCommand command)
getConfiguration in interface Configurationcommand - The driver commandpublic AdbConnection getAdbConnection()
getAdbConnection in interface AdbSupportAdbConnection of the device under test.public boolean isAirplaneModeEnabled()
public void setAirplaneMode(boolean enabled)
public org.openqa.selenium.WebDriver context(String name)
context in interface org.openqa.selenium.ContextAwarepublic Set<String> getContextHandles()
getContextHandles in interface org.openqa.selenium.ContextAwarepublic String getContext()
getContext in interface org.openqa.selenium.ContextAwarepublic void backgroundApp()
public void resumeApp()
public void addCallLog(CallLogEntry log)
public List<CallLogEntry> readCallLog()
public void setSystemProperty(String propertyName, String value)
setSystemProperty in interface SetsSystemPropertiesCopyright © 2015. All rights reserved.