@Deprecated public class IPhoneDriver extends RemoteWebDriver implements TakesScreenshot, WebStorage
Modifier and Type | Class and Description |
---|---|
static class |
IPhoneDriver.STORAGE_TYPE
Deprecated.
|
RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions, RemoteWebDriver.When
WebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, WebDriver.Window
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DEFAULT_IWEBDRIVER_URL
Deprecated.
This is the default port and URL for iWebDriver.
|
Constructor and Description |
---|
IPhoneDriver()
Deprecated.
Create an IPhoneDriver connected to an iphone simulator running on the local machine.
|
IPhoneDriver(Capabilities ignored)
Deprecated.
|
IPhoneDriver(CommandExecutor executor)
Deprecated.
Create an IPhoneDriver that will use the given
executor to communicate with the
iWebDriver app. |
IPhoneDriver(java.lang.String remoteAddress)
Deprecated.
Create an IPhoneDriver connected to the remote address passed in.
|
IPhoneDriver(java.net.URL remoteAddress)
Deprecated.
Create an IPhoneDriver connected to the remote address passed in.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Close the current window, quitting the browser if it's the last window currently open.
|
LocalStorage |
getLocalStorage()
Deprecated.
|
<X> X |
getScreenshotAs(OutputType<X> target)
Deprecated.
Capture the screenshot and store it in the specified location.
|
SessionStorage |
getSessionStorage()
Deprecated.
|
void |
setFileDetector(FileDetector detector)
Deprecated.
Set the file detector to be used when sending keyboard input.
|
WebDriver.TargetLocator |
switchTo()
Deprecated.
Send future commands to a different frame or window.
|
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, toString
protected static final java.lang.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(java.net.URL remoteAddress) throws java.lang.Exception
remoteAddress
- The full URL of the remote client (device or simulator).java.lang.Exception
IPhoneDriver(String)
public IPhoneDriver(java.lang.String remoteAddress) throws java.lang.Exception
remoteAddress
- The full URL of the remote client running iWebDriver.java.lang.Exception
IPhoneDriver(URL)
public IPhoneDriver() throws java.lang.Exception
java.lang.Exception
public IPhoneDriver(Capabilities ignored) throws java.lang.Exception
java.lang.Exception
public void setFileDetector(FileDetector detector)
RemoteWebDriver
setFileDetector
in class RemoteWebDriver
detector
- The detector to use. Must not be null.FileDetector
,
LocalFileDetector
,
UselessFileDetector
public void close()
WebDriver
close
in interface WebDriver
close
in class RemoteWebDriver
public WebDriver.TargetLocator switchTo()
WebDriver
switchTo
in interface WebDriver
switchTo
in class RemoteWebDriver
WebDriver.TargetLocator
public <X> X getScreenshotAs(OutputType<X> target)
TakesScreenshot
For WebDriver extending TakesScreenshot, this makes a best effort depending on the browser to return the following in order of preference:
For WebElement extending TakesScreenshot, this makes a best effort depending on the browser to return the following in order of preference: - The entire content of the HTML element - The visisble portion of the HTML element
getScreenshotAs
in interface TakesScreenshot
X
- Return type for getScreenshotAs.target
- target type, @see OutputTypepublic LocalStorage getLocalStorage()
getLocalStorage
in interface WebStorage
public SessionStorage getSessionStorage()
getSessionStorage
in interface WebStorage