org.openqa.selenium.iphone
Class IPhoneSimulatorCommandExecutor

java.lang.Object
  extended by org.openqa.selenium.iphone.IPhoneSimulatorCommandExecutor
All Implemented Interfaces:
CommandExecutor

public class IPhoneSimulatorCommandExecutor
extends Object
implements CommandExecutor

A CommandExecutor that communicates with an iPhone Simulator running on localhost in a subprocess. Before executing each command, the IPhoneSimulatorCommandExecutor will verify that the simulator is still running and throw an IPhoneSimulatorCommandExecutor.IPhoneSimulatorNotRunningException if it is not.

Author:
jmleyba@gmail.com (Jason Leyba)

Nested Class Summary
static class IPhoneSimulatorCommandExecutor.IPhoneSimulatorNotRunningException
           
 
Constructor Summary
IPhoneSimulatorCommandExecutor(URL url, IPhoneSimulatorBinary binary)
           
 
Method Summary
 Response execute(Command command)
           
 void startClient()
           
 void stopClient()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPhoneSimulatorCommandExecutor

public IPhoneSimulatorCommandExecutor(URL url,
                                      IPhoneSimulatorBinary binary)
                               throws Exception
Throws:
Exception
Method Detail

startClient

public void startClient()

stopClient

public void stopClient()

execute

public Response execute(Command command)
                 throws IOException
Specified by:
execute in interface CommandExecutor
Throws:
IOException


Copyright © 2011. All Rights Reserved.