org.openqa.selenium.firefox.internal
Class MarionetteConnection

java.lang.Object
  extended by org.openqa.selenium.firefox.internal.MarionetteConnection
All Implemented Interfaces:
ExtensionConnection, org.openqa.selenium.logging.NeedsLocalLogs, CommandExecutor

@Beta
public class MarionetteConnection
extends Object
implements ExtensionConnection, org.openqa.selenium.logging.NeedsLocalLogs


Constructor Summary
MarionetteConnection(org.openqa.selenium.internal.Lock lock, FirefoxBinary binary, FirefoxProfile profile, String host)
           
 
Method Summary
 Response execute(Command command)
           
 boolean isConnected()
           
 void quit()
          Terminates the connection.
 void setLocalLogs(org.openqa.selenium.logging.LocalLogs logs)
           
 void start()
          Establishes a connection to the extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarionetteConnection

public MarionetteConnection(org.openqa.selenium.internal.Lock lock,
                            FirefoxBinary binary,
                            FirefoxProfile profile,
                            String host)
                     throws Exception
Throws:
Exception
Method Detail

start

public void start()
           throws IOException
Description copied from interface: ExtensionConnection
Establishes a connection to the extension.

Specified by:
start in interface ExtensionConnection
Throws:
IOException - If an I/O error occurs.

execute

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

quit

public void quit()
Description copied from interface: ExtensionConnection
Terminates the connection.

Specified by:
quit in interface ExtensionConnection

isConnected

public boolean isConnected()
Specified by:
isConnected in interface ExtensionConnection
Returns:
Whether the extension is reachable and accepting requests.

setLocalLogs

public void setLocalLogs(org.openqa.selenium.logging.LocalLogs logs)
Specified by:
setLocalLogs in interface org.openqa.selenium.logging.NeedsLocalLogs


Copyright © 2013. All rights reserved.