Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Rename to window-handle?
Browse files Browse the repository at this point in the history
  • Loading branch information
semperos committed Jan 6, 2012
1 parent 8b345ed commit e5a7870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clj_webdriver/core_driver.clj
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
(string? handle) (do
(.window (.switchTo (:webdriver driver)) handle)
driver)
(is-window-handle? handle) (do
(window-handle? handle) (do
(.window (.switchTo (:driver handle)) (:handle handle))
driver)
(number? handle) (do
Expand Down
2 changes: 1 addition & 1 deletion src/clj_webdriver/window_handle.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
[driver handle title url]
(WindowHandle. driver handle title url))

(defn is-window-handle?
(defn window-handle?
[handle]
(= (class handle) WindowHandle))

0 comments on commit e5a7870

Please sign in to comment.