Skip to content

Commit

Permalink
Add explanation around find-element-under functions and semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
semperos committed Feb 16, 2012
1 parent 505a993 commit 9e524fe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/clj_webdriver/taxi.clj
Expand Up @@ -126,7 +126,14 @@
(defn find-element [attr-val] (core/find-element *driver* attr-val))

;; Element versions of find-element-by and find-elements-by
;; These will be regularized once #42 (decoupling by-* functionality) is fixed

;; Querying "under" elements
;; This is the part that will see more love once #42 is fixed (decouple by-* determination)
;;
;; You can either use a by-foo function (in clj-webdriver.core), or a map.
;; The map will currently generate a (by-xpath ...) form for you based on the map,
;; but it's not as powerful as the core/find-element map syntax (which handles things
;; like button*, radio, checkbox, etc.).
(defn find-element-under
"If q-parent isn't a string, it's assumed to be an Element"
[q-parent by-clause]
Expand Down

0 comments on commit 9e524fe

Please sign in to comment.