Created
March 12, 2013 06:54
-
-
Save firesofmay/5140851 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns ff.core | |
(require [clj-webdriver.taxi :as taxi] | |
[clj-webdriver.firefox :as ff])) | |
(def path-firebug "ff-extensions/firebug@software.joehewitt.com.xpi") | |
(defn init-firefox-local-driver | |
"Initializes Firefox 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)) | |
(init-firefox-local-driver 3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment