Package org.openqa.selenium.firefox.internal

Examples of org.openqa.selenium.firefox.internal.Lock


  }

  protected ExtensionConnection connectTo(FirefoxBinary binary, FirefoxProfile profile,
                                          String host) {
    int profilePort = profile.getPort() == 0 ? DEFAULT_PORT : profile.getPort();
    Lock lock = new SocketLock(profilePort - 1);
    try {
      FirefoxBinary bin = binary == null ? new FirefoxBinary() : binary;
     

      return new NewProfileExtensionConnection(lock, bin, profile, host);
    } catch (Exception e) {
      throw new WebDriverException(e);
    } finally {
      lock.unlock();
    }
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.firefox.internal.Lock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.