[clj-webdriver "0.6.0-beta3"] not working with Firefox 20 Mac.

164 views
Skip to first unread message

Mayank Jain

unread,
Apr 5, 2013, 10:11:31 AM4/5/13
to clj-we...@googlegroups.com
Firefox 20.0 doesn't seem to connect. It was working fine on 19 yesterday.

This is what I am running,

(defn init-firefox-local-driver
  "Initializes Fir efox driver.
   And sets a global implicit-wait"
  [wait-timeout]
  (taxi/set-driver! {:browser-name :firefox
                     :profile (doto (ff/new-profile)
                                (ff/set-preferences {"app.update.enabled" false})
                                (ff/set-preferences {"extensions.firebug.showFirstRunPage" false})
                                (ff/enable-extension path-firebug))})
  (taxi/implicit-wait wait-timeout))

And I run it like this:

> (init-firefox-local-driver 3000)

Logs:
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-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /var/folders/by/02s6rgvx0796qbbl_lc0b6cw0000gn/T/anonymous6881712836641956060webdriver-profile/extensions/webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fir...@software.joehewitt.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: Loading bootstrap scope from /var/folders/by/02s6rgvx0796qbbl_lc0b6cw0000gn/T/anonymous6881712836641956060webdriver-profile/extensions/fir...@software.joehewitt.com
*** LOG addons.xpi: Calling bootstrap method install on fir...@software.joehewitt.com version 1.10.3
*** LOG addons.xpi: New add-on fxdr...@googlecode.com installed in app-profile
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** 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 addons.xpi: Calling bootstrap method startup on fir...@software.joehewitt.com version 1.10.3
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
*** LOG addons.xpi: startup
*** 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: /var/folders/by/02s6rgvx0796qbbl_lc0b6cw0000gn/T/anonymous6881712836641956060webdriver-profile/extensions/webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
*** LOG addons.xpi: Loading bootstrap scope from /var/folders/by/02s6rgvx0796qbbl_lc0b6cw0000gn/T/anonymous6881712836641956060webdriver-profile/extensions/fir...@software.joehewitt.com
*** LOG addons.xpi: Calling bootstrap method startup on fir...@software.joehewitt.com version 1.10.3
2013-04-05 19:38:05.397 firefox-bin[670:707] invalid drawable
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
  [Thrown class org.openqa.selenium.firefox.NotConnectedException]
Restarts:
 0: [QUIT] Quit to the SLIME top level
Backtrace:
  0: NewProfileExtensionConnection.java:106 org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start
  1:      FirefoxDriver.java:244 org.openqa.selenium.firefox.FirefoxDriver.startClient
  2:    RemoteWebDriver.java:110 org.openqa.selenium.remote.RemoteWebDriver.<init>
  3:      FirefoxDriver.java:188 org.openqa.selenium.firefox.FirefoxDriver.<init>
  4:      FirefoxDriver.java:183 org.openqa.selenium.firefox.FirefoxDriver.<init>
  5:      FirefoxDriver.java:179 org.openqa.selenium.firefox.FirefoxDriver.<init>
  6:       FirefoxDriver.java:96 org.openqa.selenium.firefox.FirefoxDriver.<init>
  7:            (Unknown Source) sun.reflect.NativeConstructorAccessorImpl.newInstance0
  8: NativeConstructorAccessorImpl.java:39 sun.reflect.NativeConstructorAccessorImpl.newInstance
  9: DelegatingConstructorAccessorImpl.java:27 sun.reflect.DelegatingConstructorAccessorImpl.newInstance
 --more--

Mayank Jain

unread,
Apr 5, 2013, 10:29:17 AM4/5/13
to clj-we...@googlegroups.com
Works fine in Firefox 19.0b6
--
Regards,
Mayank.

semperos

unread,
Apr 5, 2013, 11:49:38 AM4/5/13
to clj-we...@googlegroups.com
When the latest version of "browser X" doesn't work with clj-webdriver, the simplest way to fix that before clj-webdriver does another release (which unfortunately I'm still delaying due to Sean's findings in the last release, related most likely to upstream bugs in Selenium-WebDriver), you can *exclude* clj-webdriver's dependency on selenium-server in your own project.clj, and then add it back as a dependency in your own code base. Something like this:

(defproject your-project "0.0.1"
  ,,,
  :dependencies [[org.clojure/clojure "1.4.0"]
                 ,,,
                 [clj-webdriver "0.6.0-beta3"
                  :exclusions [org.seleniumhq.selenium/selenium-server]]
                 [org.seleniumhq.selenium/selenium-server "2.31.0"]]
  ,,,)

There's no guarantee this won't break clj-webdriver, if the release of selenium-server contains breaking changes, but that occurs very infrequently. More often than not, these newer Selenium-WebDriver releases are done, it seems, to bring support to newer major releases of Firefox.

That said, I plan to release clj-webdriver as soon as we can work out whether the most recent release of Selenium-WebDriver fixes some of the non-deterministic results Sean was seeing. If it doesn't, I'll be entertaining an alternative approach to how clj-webdriver gets released.

-Daniel

Mayank Jain

unread,
Apr 6, 2013, 1:58:13 AM4/6/13
to clj-we...@googlegroups.com
Should we add that as a FAQ in wiki?


--
You received this message because you are subscribed to the Google Groups "clj-webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clj-webdrive...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards,
Mayank.

Daniel Gregoire

unread,
Apr 7, 2013, 5:37:57 PM4/7/13
to clj-we...@googlegroups.com
It couldn't hurt. It's more a matter of understanding Leiningen/Maven dependency management than a clj-webdriver specific feature, but it's worth pointing out.

Mayank Jain

unread,
Apr 8, 2013, 11:17:13 AM4/8/13
to clj-we...@googlegroups.com
Added it to Snippets for future reference.

semperos

unread,
Apr 9, 2013, 12:45:39 PM4/9/13
to clj-we...@googlegroups.com
Thank you :)
Reply all
Reply to author
Forward
0 new messages