Firefox is not opening with webdriver | Selenium Forum
M
Posted on 06/11/2015
I am getting the below error while executing the Module - 19 Data driven frame work.

Can any one help

Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.qtpselenium.test.DriverScript.executeKeywords(DriverScript.java:202)
at com.qtpselenium.test.DriverScript.start(DriverScript.java:140)
at com.qtpselenium.test.DriverScript.main(DriverScript.java:65)

[color=#FF0000:2tylvmss]Caused by: org.openqa.selenium.WebDriverException:Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: XP
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
Driver info: driver.version: firefox[/color:2tylvmss]

at org.openqa.selenium.firefox.internal.Executable.<init>(Executable.java:48)
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:56)
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:52)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:109)
at com.qtpselenium.test.Keywords.openBrowser(Keywords.java:39)
... 7 more

M
Replied on 06/11/2015

lower the firefox version.


M
Replied on 09/11/2015

currently i am using Firefox Version 42. on 64bit machine

What is the lower version, should I use ?


M
Replied on 09/11/2015

firefox 30.


M
Replied on 11/11/2015

Do we have any solution for below error.

I have tried almost all the previous version of firefox.
I am still getting this error.


Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.qtpselenium.test.DriverScript.executeKeywords(DriverScript.java:202)
at com.qtpselenium.test.DriverScript.start(DriverScript.java:140)
at com.qtpselenium.test.DriverScript.main(DriverScript.java:65)
Caused by: org.openqa.selenium.WebDriverException: org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
Driver info: driver.version: firefox
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
Driver info: driver.version: firefox
at org.openqa.selenium.firefox.internal.ExtensionConnectionFactory.connectTo(ExtensionConnectionFactory.java:46)
at org.openqa.selenium.firefox.FirefoxDriver.connectTo(FirefoxDriver.java:139)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:129)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:109)
at com.qtpselenium.test.Keywords.openBrowser(Keywords.java:41)
... 7 more
Caused by: org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
Driver info: driver.version: firefox
at org.openqa.selenium.firefox.internal.SocketLock.lock(SocketLock.java:72)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.<init>(NewProfileExtensionConnection.java:45)
at org.openqa.selenium.firefox.internal.ExtensionConnectionFactory.connectTo(ExtensionConnectionFactory.java:44)
... 11 more


M
Replied on 12/11/2015

[quote:2a7k9zjj]Caused by: org.openqa.selenium.WebDriverException: Unable to bind to locking port 7054 within 45000 ms[/quote:2a7k9zjj]

this error is caused when firefox version is too high.