org.openqa.selenium.android
Class AndroidDriver

java.lang.Object
  extended by org.openqa.selenium.remote.RemoteWebDriver
      extended by org.openqa.selenium.android.AndroidDriver
All Implemented Interfaces:
org.openqa.selenium.HasCapabilities, org.openqa.selenium.HasInputDevices, org.openqa.selenium.HasTouchScreen, org.openqa.selenium.html5.BrowserConnection, 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

A driver for running tests on an Android device or emulator.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver
RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions
 
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
 
Constructor Summary
AndroidDriver()
          The default constructor assumes the remote server is listening at http://localhost:8080/wd/hub
AndroidDriver(DesiredCapabilities caps)
           
AndroidDriver(String remoteAddress)
           
AndroidDriver(URL remoteAddress)
           
AndroidDriver(URL url, DesiredCapabilities caps)
           
 
Method Summary
 org.openqa.selenium.ScreenOrientation getOrientation()
           
<X> X
getScreenshotAs(org.openqa.selenium.OutputType<X> target)
           
 org.openqa.selenium.TouchScreen getTouch()
           
 boolean isOnline()
           
 void rotate(org.openqa.selenium.ScreenOrientation orientation)
           
 void setOnline(boolean online)
           
 
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
 

Constructor Detail

AndroidDriver

public AndroidDriver()
The default constructor assumes the remote server is listening at http://localhost:8080/wd/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)
Method Detail

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


Copyright © 2011. All Rights Reserved.