org.openqa.selenium.android
Class AndroidDriver
java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.android.AndroidDriver
- All Implemented Interfaces:
- HasCapabilities, HasInputDevices, HasTouchScreen, BrowserConnection, WebStorage, FindsByClassName, FindsByCssSelector, FindsById, FindsByLinkText, FindsByName, FindsByTagName, FindsByXPath, JavascriptExecutor, Rotatable, SearchContext, TakesScreenshot, WebDriver
public class AndroidDriver
- extends RemoteWebDriver
- implements TakesScreenshot, Rotatable, BrowserConnection, HasTouchScreen, WebStorage
A driver for running tests on an Android device or emulator.
| 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, getKeyboard, getMouse, getPageSource, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, newRemoteWebElement, quit, setCommandExecutor, setElementConverter, startClient, startSession, stopClient, switchTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndroidDriver
public AndroidDriver()
- The default constructor assumes the remote server is listening at http://localhost:8080/wd/hub
AndroidDriver
public AndroidDriver(java.lang.String remoteAddress)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
AndroidDriver
public AndroidDriver(DesiredCapabilities caps)
AndroidDriver
public AndroidDriver(java.net.URL remoteAddress)
AndroidDriver
public AndroidDriver(java.net.URL url,
DesiredCapabilities caps)
getScreenshotAs
public <X> X getScreenshotAs(OutputType<X> target)
throws WebDriverException
- Specified by:
getScreenshotAs in interface TakesScreenshot
- Throws:
WebDriverException
isOnline
public boolean isOnline()
- Specified by:
isOnline in interface BrowserConnection
setOnline
public void setOnline(boolean online)
throws WebDriverException
- Specified by:
setOnline in interface BrowserConnection
- Throws:
WebDriverException
rotate
public void rotate(ScreenOrientation orientation)
- Specified by:
rotate in interface Rotatable
getOrientation
public ScreenOrientation getOrientation()
- Specified by:
getOrientation in interface Rotatable
getTouch
public TouchScreen getTouch()
- Specified by:
getTouch in interface HasTouchScreen
getLocalStorage
public LocalStorage getLocalStorage()
- Specified by:
getLocalStorage in interface WebStorage
getSessionStorage
public SessionStorage getSessionStorage()
- Specified by:
getSessionStorage in interface WebStorage
Copyright © 2011. All Rights Reserved.