|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.iphone.IPhoneDriver
public class IPhoneDriver
IPhoneDriver is a driver for running tests on Mobile Safari on the iPhone, iPad and iPod Touch. The driver uses WebDriver's remote REST interface to communicate with the iphone. The iphone (or iphone simulator) must be running the iWebDriver app.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver |
---|
RemoteWebDriver.RemoteMouse, RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions |
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver |
---|
WebDriver.ImeHandler, WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts |
Field Summary | |
---|---|
protected static String |
DEFAULT_IWEBDRIVER_URL
This is the default port and URL for iWebDriver. |
Constructor Summary | |
---|---|
IPhoneDriver()
Create an IPhoneDriver connected to an iphone simulator running on the local machine. |
|
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. |
Method Summary | ||
---|---|---|
void |
close()
Close the current window, quitting the browser if it's the last window currently open. |
|
|
getScreenshotAs(OutputType<X> target)
Capture the screenshot and store it in the specified location. |
|
WebDriver.TargetLocator |
switchTo()
Send future commands to a different frame or window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String DEFAULT_IWEBDRIVER_URL
Constructor Detail |
---|
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).
Exception
IPhoneDriver(String)
public IPhoneDriver(String remoteAddress) throws Exception
remoteAddress
- The full URL of the remote client running iWebDriver.
Exception
IPhoneDriver(URL)
public IPhoneDriver() throws Exception
Exception
Method Detail |
---|
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
getScreenshotAs
in interface TakesScreenshot
X
- Return type for getScreenshotAs.target
- target type, @see OutputType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |