Skip to content

Instantly share code, notes, and snippets.

Created December 21, 2012 09:21
Show Gist options
  • Save anonymous/4351694 to your computer and use it in GitHub Desktop.
Save anonymous/4351694 to your computer and use it in GitHub Desktop.
Clj-webdriver Remote driver bug.
(ns clj-bug.core
(:require
[clj-webdriver.remote.server :as rs]
[clj-webdriver.taxi :as taxi]
[clj-webdriver.firefox :as ff]))
(defn init-grid
"Initializes the grid code"
[port cred spec]
(let [[this-server this-driver]
(rs/new-remote-session {:port port
:host cred
:existing true}
spec)]
(taxi/set-driver! this-driver)))
;;Following always results in XP as Platform, Firefox as the browser.
;;cred example : username@uuid-here.saucelabs.com
(comment
(init-grid 80 cred {:platform :mac})
(init-grid 80 cred {:browser-name :chrome :platform :mac}))
;Call quit once the grid value is printed
(comment
(taxi/quit))
(defproject clj-bug "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]
[clj-webdriver "0.6.0-beta2"]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment