Skip to content

Commit

Permalink
Add tests for new back/forward functionality, accepting a numeric arg…
Browse files Browse the repository at this point in the history
…ument for number of pages back/forward in history
  • Loading branch information
semperos committed Feb 17, 2012
1 parent 5bc4fdb commit aeae113
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/clj_webdriver/test/taxi.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@
;; Back, forward ;;
(go)
(click (find-element {:tag :a, :text "example form"}))
(Thread/sleep 500)
(Thread/sleep 500) ;; cross-browser race condition
(fact (current-url) => (str test-base-url "example-form"))
(back)
(fact (current-url) => test-base-url)
(forward)
(fact (current-url) => (str test-base-url "example-form"))
(go "clojure")
(back 2)
(fact (current-url) => test-base-url)
(forward 2)
(fact (current-url) => (str test-base-url "clojure"))

;; To function (navigation) ;;
(to (str test-base-url "example-form"))
Expand Down

0 comments on commit aeae113

Please sign in to comment.