public class IPhoneDriver extends RemoteWebDriver implements org.openqa.selenium.TakesScreenshot, org.openqa.selenium.html5.WebStorage
| Modifier and Type | Class and Description |
|---|---|
static class |
IPhoneDriver.STORAGE_TYPE |
RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions, 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| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_IWEBDRIVER_URL
This is the default port and URL for iWebDriver.
|
| Constructor and Description |
|---|
IPhoneDriver()
Create an IPhoneDriver connected to an iphone simulator running on the local machine.
|
IPhoneDriver(org.openqa.selenium.Capabilities ignored) |
IPhoneDriver(CommandExecutor executor)
Create an IPhoneDriver that will use the given
executor to communicate with the
iWebDriver app. |
IPhoneDriver(String remoteAddress)
Create an IPhoneDriver connected to the remote address passed in.
|
IPhoneDriver(URL remoteAddress)
Create an IPhoneDriver connected to the remote address passed in.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.openqa.selenium.html5.LocalStorage |
getLocalStorage() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
org.openqa.selenium.html5.SessionStorage |
getSessionStorage() |
void |
setFileDetector(FileDetector detector) |
org.openqa.selenium.WebDriver.TargetLocator |
switchTo() |
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, toStringprotected static final String DEFAULT_IWEBDRIVER_URL
public IPhoneDriver(CommandExecutor executor)
executor to communicate with the
iWebDriver app.executor - The executor to use for communicating with the iPhone.public IPhoneDriver(URL remoteAddress) throws Exception
remoteAddress - The full URL of the remote client (device or simulator).ExceptionIPhoneDriver(String)public IPhoneDriver(String remoteAddress) throws Exception
remoteAddress - The full URL of the remote client running iWebDriver.ExceptionIPhoneDriver(URL)public IPhoneDriver()
throws Exception
Exceptionpublic void setFileDetector(FileDetector detector)
setFileDetector in class RemoteWebDriverpublic void close()
close in interface org.openqa.selenium.WebDriverclose in class RemoteWebDriverpublic org.openqa.selenium.WebDriver.TargetLocator switchTo()
switchTo in interface org.openqa.selenium.WebDriverswitchTo in class RemoteWebDriverpublic <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotpublic org.openqa.selenium.html5.LocalStorage getLocalStorage()
getLocalStorage in interface org.openqa.selenium.html5.WebStoragepublic org.openqa.selenium.html5.SessionStorage getSessionStorage()
getSessionStorage in interface org.openqa.selenium.html5.WebStorageCopyright © 2013. All Rights Reserved.