org.openqa.selenium.android
Class AndroidDriver
java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.android.AndroidDriver
- All Implemented Interfaces:
- org.openqa.selenium.HasCapabilities, org.openqa.selenium.HasInputDevices, org.openqa.selenium.HasTouchScreen, org.openqa.selenium.html5.ApplicationCache, org.openqa.selenium.html5.BrowserConnection, org.openqa.selenium.html5.LocationContext, org.openqa.selenium.html5.WebStorage, org.openqa.selenium.internal.FindsByClassName, org.openqa.selenium.internal.FindsByCssSelector, org.openqa.selenium.internal.FindsById, org.openqa.selenium.internal.FindsByLinkText, org.openqa.selenium.internal.FindsByName, org.openqa.selenium.internal.FindsByTagName, org.openqa.selenium.internal.FindsByXPath, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.Rotatable, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebDriver
public class AndroidDriver
- extends RemoteWebDriver
- implements org.openqa.selenium.TakesScreenshot, org.openqa.selenium.Rotatable, org.openqa.selenium.html5.BrowserConnection, org.openqa.selenium.HasTouchScreen, org.openqa.selenium.html5.WebStorage, org.openqa.selenium.html5.LocationContext, org.openqa.selenium.html5.ApplicationCache
A driver for running tests on an Android device or emulator.
| Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver |
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 |
| Methods inherited from class org.openqa.selenium.remote.RemoteWebDriver |
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, setFoundBy, setLogLevel, setSessionId, startClient, startSession, startSession, stopClient, switchTo, toString |
AndroidDriver
public AndroidDriver()
- The default constructor assumes the remote server is listening at http://localhost:8080/wd/hub
AndroidDriver
public AndroidDriver(org.openqa.selenium.Capabilities ignored)
AndroidDriver
public AndroidDriver(String remoteAddress)
throws MalformedURLException
- Throws:
MalformedURLException
AndroidDriver
public AndroidDriver(DesiredCapabilities caps)
AndroidDriver
public AndroidDriver(URL remoteAddress)
AndroidDriver
public AndroidDriver(URL url,
DesiredCapabilities caps)
setFileDetector
public void setFileDetector(FileDetector detector)
- Overrides:
setFileDetector in class RemoteWebDriver
getScreenshotAs
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
throws org.openqa.selenium.WebDriverException
- Specified by:
getScreenshotAs in interface org.openqa.selenium.TakesScreenshot
- Throws:
org.openqa.selenium.WebDriverException
isOnline
public boolean isOnline()
- Specified by:
isOnline in interface org.openqa.selenium.html5.BrowserConnection
setOnline
public void setOnline(boolean online)
throws org.openqa.selenium.WebDriverException
- Specified by:
setOnline in interface org.openqa.selenium.html5.BrowserConnection
- Throws:
org.openqa.selenium.WebDriverException
rotate
public void rotate(org.openqa.selenium.ScreenOrientation orientation)
- Specified by:
rotate in interface org.openqa.selenium.Rotatable
getOrientation
public org.openqa.selenium.ScreenOrientation getOrientation()
- Specified by:
getOrientation in interface org.openqa.selenium.Rotatable
getTouch
public org.openqa.selenium.TouchScreen getTouch()
- Specified by:
getTouch in interface org.openqa.selenium.HasTouchScreen
getLocalStorage
public org.openqa.selenium.html5.LocalStorage getLocalStorage()
- Specified by:
getLocalStorage in interface org.openqa.selenium.html5.WebStorage
getSessionStorage
public org.openqa.selenium.html5.SessionStorage getSessionStorage()
- Specified by:
getSessionStorage in interface org.openqa.selenium.html5.WebStorage
location
public org.openqa.selenium.html5.Location location()
- Specified by:
location in interface org.openqa.selenium.html5.LocationContext
setLocation
public void setLocation(org.openqa.selenium.html5.Location loc)
- Specified by:
setLocation in interface org.openqa.selenium.html5.LocationContext
getStatus
public org.openqa.selenium.html5.AppCacheStatus getStatus()
- Specified by:
getStatus in interface org.openqa.selenium.html5.ApplicationCache
Copyright © 2013. All Rights Reserved.