Exception-Failed to connect to binary FirefoxBinary

8,828 views
Skip to first unread message

remya

unread,
May 8, 2012, 10:41:54 AM5/8/12
to webdriver
Hi All,

I get this exception when i run my test.Why is this so?


org.openqa.selenium.WebDriverException: Failed to connect to binary
FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port
7055; process output follows:
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-
local
*** LOG addons.xpi: Skipping unavailable install location app-system-
share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-
on ID: C:\Users\RVISWA~1.SPI\AppData\Local\Temp
\anonymous687792264347085216webdriver-profile\extensions\webdriver-
staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
*** LOG addons.xpi: shutdown

Build info: version: '2.19.0', revision: '15849', time: '2012-02-08
16:11:19'
System info: os.name: 'Windows Vista', os.arch: 'x86', os.version:
'6.0', java.version: '1.6.0_31'
Driver info: driver.version: FirefoxDriver

Mark Collin

unread,
May 8, 2012, 11:12:15 AM5/8/12
to webd...@googlegroups.com
Is firefox.exe in C:\Program Files\Mozilla Firefox\ ?
--
You received this message because you are subscribed to the Google Groups
"webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to
webdriver+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/webdriver?hl=en.


sai kiran

unread,
May 8, 2012, 1:09:12 PM5/8/12
to webd...@googlegroups.com
Hi Mark,

You have been the role model for Selenium/WebDriver Groups. Your statements/explanations/framework helped lot of people and gave the motivation to learn new things and think of out of box. There are lot of thing to talk about.....

But, I want to say... Keep up the good work and keep going....

Thank You....

-Sai

Mark Collin

unread,
May 8, 2012, 6:02:43 PM5/8/12
to webd...@googlegroups.com

Thank you J

vamshi

unread,
Jun 20, 2012, 11:44:04 AM6/20/12
to webd...@googlegroups.com
Hi All,

I get the below error, i have loaded selenium ver 2.24.1 running on firefox 10

please help1



org.openqa.selenium.
WebDriverException: Failed to connect to binary
FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port
7055; process output follows:
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-
local
*** LOG addons.xpi: Skipping unavailable install location app-system-
share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-
on ID: C:\Users\RVISWA~1.SPI\AppData\Local\Temp
\anonymous687792264347085216webdriver-profile\extensions\webdriver-
staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
*** LOG addons.xpi: shutdown


Krishnan Mahadevan

unread,
Jun 20, 2012, 11:55:54 AM6/20/12
to webd...@googlegroups.com
Please invoke firefox -p delete all existing profiles and then retry again (Dont forget to take backup of your bookmarks)

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/gi_Xh5v1GdsJ.

Mike Riley

unread,
Jun 20, 2012, 1:43:47 PM6/20/12
to webd...@googlegroups.com
I wouldn't delete the Default profile though, unless you absolutely have screwed it up.  It does give you the option of deleting the profile from the list, but leaving the files.  Be sure that after you create the profile you want that you run it one more time and choose the default profile so that manually invoking Firefox doesn't screw up your stored profile!

I put a profile out for every major version (minor revisions should not matter) and name the directory Firefox#.profile.  I have one for Firefox 3 through 13.

Mike
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.

Sumit Saxena

unread,
Jun 21, 2012, 7:41:43 AM6/21/12
to webd...@googlegroups.com
Reinstall firefox because driver is not able to find firefox.exe that is why it is giving this error

On Wed, Jun 20, 2012 at 11:13 PM, Mike Riley <lvsk...@cox.net> wrote:
I wouldn't delete the Default profile though, unless you absolutely have screwed it up.  It does give you the option of deleting the profile from the list, but leaving the files.  Be sure that after you create the profile you want that you run it one more time and choose the default profile so that manually invoking Firefox doesn't screw up your stored profile!

I put a profile out for every major version (minor revisions should not matter) and name the directory Firefox#.profile.  I have one for Firefox 3 through 13.

Mike.exe tha
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/1Ks0FiBN2ngJ.

To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.

Krishnan Mahadevan

unread,
Jul 11, 2012, 9:59:40 AM7/11/12
to webd...@googlegroups.com
Srinivas,
Since you are seeing a org.openqa.selenium.firefox.NotConnectedException.NotConnectedException(URL, long, String), from the code base I am guessing that, selenium was never able to spawn firefox with either the anonymous default profile (which is mostly a copy of the default profile), or a profile that was specified by you, within 45 seconds.

Here's what you can do, before retrying once again.

Invoke firefox profile manager using "firefox -p".
Remove all existing firefox profiles including the default profile [ Make sure you are deleting them off from your file system, and dont forget to take a backup of your bookmarks from your default profile]

Now retry running the code. It should work.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



On Wed, Jul 11, 2012 at 5:59 PM, Srinivas <challasriniv...@gmail.com> wrote:
Hi All,

I am also getting the same error, i have loaded selenium ver 2.24.1 running on firefox 9.

I have checked the below
1.  firefox.exe in C:\Program Files\Mozilla Firefox\
2. Reinstall the firefox. Still i am getting same error. Please help me. I am posting the error message below.


Exception in thread "main" org.openqa.selenium.WebDriverException: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
ÿ
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_20'
Driver info: driver.version: firefox
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_20'
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 Demo.demo.main(demo.java:17)
Caused by: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
ÿ
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_20'
Driver info: driver.version: firefox
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.connectToBrowser(NewProfileExtensionConnection.java:68)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.<init>(NewProfileExtensionConnection.java:57)
    at org.openqa.selenium.firefox.internal.ExtensionConnectionFactory.connectTo(ExtensionConnectionFactory.java:44)
    ... 4 more
Caused by: org.openqa.selenium.firefox.NotConnectedException: Failed to start up socket within 45000
    at org.openqa.selenium.firefox.internal.AbstractExtensionConnection.connectToBrowser(AbstractExtensionConnection.java:143)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.connectToBrowser(NewProfileExtensionConnection.java:66)


Thanks
Srinivas

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/kMT2L5StUFUJ.

Srinivas

unread,
Jul 12, 2012, 1:20:26 AM7/12/12
to webd...@googlegroups.com
Hi Krishnan,

I have deleted all the profiles(including default profile) and executed the script. Still i am getting the same error message. Actually firefox window is opening but nothing happening after that.

Thanks
Srinivas

On Tuesday, 8 May 2012 20:11:54 UTC+5:30, remya wrote:

Naresh

unread,
Jul 12, 2012, 4:22:45 AM7/12/12
to webd...@googlegroups.com
Hello Srinivas,

When you upgraded the grid to version version 2.24, did you update your binaries also?

Thanks,
Naresh

Srinivas

unread,
Jul 12, 2012, 5:17:33 AM7/12/12
to webd...@googlegroups.com
Yupe Krishnan,
 
 Problem with the binaries. Thanks for your valuable information. Actually i downloaded whole selenium2.24.1 project from selenium downloads. After searching for some time in web found that firefox binaries will present in selenium-server-standalone. jar . But in selenium2.24.1 we have selenium-server.jar. So i removed the selenium-server and imported standalone server jar. Now it is working fine.

Thanks
Srinivas

On Tuesday, 8 May 2012 20:11:54 UTC+5:30, remya wrote:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages