报错内容:Exceptioninthread"main"org.openqa.selenium.WebDriverException:Unabletobindtolockingport7054within45000msBuildinfo:version:'2.40.0',revision:'fbe29a9',time:'2014...
报错内容:
Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:55:11'
System info: host: 'zhaoxy-PC', ip: '192.168.20.105', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_31'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.internal.SocketLock.lock(SocketLock.java:98)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:84)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:112)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:194)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:187)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:183)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:96)
at MyTest.who.main(who.java:12)
展开