public class SelendroidDriver extends org.openqa.selenium.remote.RemoteWebDriver implements org.openqa.selenium.interactions.HasTouchScreen, ScreenBrightness, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.Rotatable, Configuration, org.openqa.selenium.JavascriptExecutor, AdbSupport
| 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 |
|---|---|
AdbConnection |
getAdbConnection() |
int |
getBrightness() |
Map<String,Object> |
getConfiguration(DriverCommand command) |
org.openqa.selenium.ScreenOrientation |
getOrientation() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
org.openqa.selenium.interactions.TouchScreen |
getTouch() |
void |
rotate(org.openqa.selenium.ScreenOrientation orientation) |
void |
setBrightness(int desiredBrightness) |
void |
setConfiguration(DriverCommand command,
String key,
Object value) |
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, getRemoteStatus, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, quit, setCommandExecutor, setElementConverter, 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 <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionpublic 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.Copyright © 2014. All rights reserved.