org.openqa.selenium.android
Class AndroidDriver
java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.android.AndroidDriver
- All Implemented Interfaces:
- HasCapabilities, HasInputDevices, BrowserConnection, FindsByClassName, FindsByCssSelector, FindsById, FindsByLinkText, FindsByName, FindsByTagName, FindsByXPath, JavascriptExecutor, Rotatable, SearchContext, TakesScreenshot, WebDriver
public class AndroidDriver
- extends RemoteWebDriver
- implements TakesScreenshot, Rotatable, BrowserConnection
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, 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/hub
AndroidDriver
public AndroidDriver(String remoteAddress)
throws MalformedURLException
- Throws:
MalformedURLException
AndroidDriver
public AndroidDriver(URL remoteAddress)
AndroidDriver
public AndroidDriver(URL url,
DesiredCapabilities caps)
AndroidDriver
public AndroidDriver(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
Copyright © 2011. All Rights Reserved.