Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Selenium Webdriver 2.41 is not working with Firefox 28 #7189

Closed
lukeis opened this issue Mar 4, 2016 · 9 comments
Closed

Selenium Webdriver 2.41 is not working with Firefox 28 #7189

lukeis opened this issue Mar 4, 2016 · 9 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 7189

Selenium Webdriver 2.41 launches firefox 28 and does nothing after it launches.It throws
the below exception and quits.

Please suggest me on this.

Selenium version:2.41
OS:Win 7
Browser:Firefox
Browser version:28

Exception:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1
on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** 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\A530883\AppData\Local\Temp\anonymous7150227773558671039webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Directory state JSON differs: cache [] state [{"name":"winreg-app-global","addons":{"{BBDA0591-3099-440a-AA10-41764D9DB4DB}":{"descriptor":"C:\\ProgramData\\Symantec\\Symantec
Endpoint Protection\\12.1.4013.4013.105\\Data\\IPSFF","mtime":1396932430994,"rdfTime":1396932430989}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program
Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396872152302,"rdfTime":1396872152230}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\A530883\\AppData\\Local\\Temp\\anonymous7150227773558671039webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1397018111953,"rdfTime":1397018111913}}}]
*** LOG addons.xpi-utils: Opening XPI database C:\Users\A530883\AppData\Local\Temp\anonymous7150227773558671039webdriver-profile\extensions.json
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in
app-global
*** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd}
visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {BBDA0591-3099-440a-AA10-41764D9DB4DB} installed in
winreg-app-global
*** LOG addons.xpi-utils: Make addon winreg-app-global:{BBDA0591-3099-440a-AA10-41764D9DB4DB}
visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG DeferredSave/extensions.json: Starting timer
*** LOG DeferredSave/extensions.json: Starting write
*** LOG DeferredSave/extensions.json: Write succeeded
*** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to
15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
*** 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\A530883\AppData\Local\Temp\anonymous7150227773558671039webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 648: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 648: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 648: aUrl is undefined

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:109)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:245)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:109)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:178)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:174)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:92)
    at controller.DriverExecution.initFirefoxDriver(DriverExecution.java:98)
    at controller.DriverExecution.initDriver(DriverExecution.java:65)
    at controller.ReadExcel.mainControll(ReadExcel.java:737)
    at controller.MainController.actionPerformed(MainController.java:168)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
null

Reported by srinivasan.sekar1990 on 2014-04-09 04:42:00

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

WebDriver addon seems to be installed into Firefox. So please check the network settings
-- firewalls, proxies, antivirus software that can block connections to 127.0.0.1:7055

Reported by barancev on 2014-04-09 09:11:17

  • Status changed: NeedsClarification
  • Labels added: Browser-Firefox

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Same configuration But Its working fine. :)

Reported by MANISH.TECH2 on 2014-05-09 08:29:25

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Related to this issue?
https://code.google.com/p/selenium/issues/detail?id=7279

Reported by jeffiwebss on 2014-05-11 23:04:29

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I think it is Symantec software blocking Selenium.

Reported by barancev on 2014-05-14 18:50:13

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I was having a similar issue an it turned out that even though I had WebDriver 2.41
set as a Maven dependency my framework was still spinning up a browser using 2.32 because
there were some non-dependency WebDriver libraries in my classpath.  You can check
to see what version Firefox is actually using like this:

- Fire up the test and let it launch the blank page
- Go to 'Add-Ons' / 'Extensions'
- Check the WebDriver extension version.  For me this was still set to 2.32 even though
I thought I was running 2.41

If this or something like this is the case for you, change around your classpath so
any Selenium libraries in there of the old version (or any older version) are demoted
to lines below the libraries belonging to the version you actually want to use.

See also: http://stackoverflow.com/questions/23664751/why-doesnt-java-webdriver-launch-firefox-with-an-updated-webdriver-extension

Reported by scorpionmime on 2014-05-14 21:40:08

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Thank you scorpion...@gmail.com!

I was wresting with this for a couple of days, then I finally found your note about
checking "Add-Ons"/"Extensions".  It turned out I had 2.32 running too despite including
2.41.  I am using ScalaTest and it happens to include Selenium 2.32 as a dependency
(probably because it has a DSL for Selenium) and it was listed before Selenium 2.41.
 I flipped the order and it fixed my problem.

Reported by gandalf3021 on 2014-05-22 04:44:25

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Closing the issue due to inactivity

Reported by barancev on 2014-06-08 15:42:28

  • Status changed: Invalid

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

symantec software i.e Norton antivirus blocking selenium. What to do?

Reported by tripthi.shetty@socialmedialink.com on 2015-09-13 20:59:14

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:22:17

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant