org.openqa.selenium.iphone
Class IPhoneSimulatorBinary

java.lang.Object
  extended by org.openqa.selenium.remote.internal.SubProcess
      extended by org.openqa.selenium.iphone.IPhoneSimulatorBinary

public class IPhoneSimulatorBinary
extends SubProcess

Handles launching the iWebDriver app on the iPhone Simulator in a subprocess.

Only one instance of the iPhone Simulator may be run at once, so all other instances will be killed before a new one is started.

The iPhone Simulator will be run in a headless mode against the SDK specified by the webdriver.iphone.sdk system property. A temporary directory will be used as the user home so the application need not be pre-installed.

Author:
jmleyba@gmail.com (Jason Leyba)

Constructor Summary
IPhoneSimulatorBinary(File iWebDriverApp)
          Creates a new IPhoneSimulatorBinary that will run the given application on the iPhone Simulator.
 
Method Summary
 void shutdown()
          Kills iWebDriver and the iPhone Simulator.
 
Methods inherited from class org.openqa.selenium.remote.internal.SubProcess
exitValue, isRunning, launch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPhoneSimulatorBinary

public IPhoneSimulatorBinary(File iWebDriverApp)
                      throws IOException
Creates a new IPhoneSimulatorBinary that will run the given application on the iPhone Simulator. The simulator will be run using the SDK specified by the webdriver.iphone.sdk system property.

Parameters:
iWebDriverApp - Path to the executable to run on the simulator. This file should specify the executable that is an immedidate child of the iwebDriver.app directory.
Throws:
IOException - If an I/O error occurs.
Method Detail

shutdown

public void shutdown()
Kills iWebDriver and the iPhone Simulator.

Overrides:
shutdown in class SubProcess
See Also:
SubProcess.shutdown()


Copyright © 2011. All Rights Reserved.