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

Commit

Permalink
Update find-table-row test to use table element
Browse files Browse the repository at this point in the history
  • Loading branch information
semperos committed Feb 15, 2012
1 parent a869fe3 commit 621e89a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/clj_webdriver/test/common.clj
Expand Up @@ -233,11 +233,17 @@
(defn find-table-row-should-find-all-cells-for-row
[driver]
(is (= 2
(count (find-table-row driver {:id "pages-table"} 0))))
(count (find-table-row driver
(find-element driver {:id "pages-table"})
0))))
(is (= "th"
(.toLowerCase (tag (first (find-table-row driver {:id "pages-table"} 0))))))
(.toLowerCase (tag (first (find-table-row driver
(find-element driver {:id "pages-table"})
0))))))
(is (= "td"
(.toLowerCase (tag (first (find-table-row driver {:id "pages-table"} 1)))))))
(.toLowerCase (tag (first (find-table-row driver
(find-element driver {:id "pages-table"})
1)))))))

(defn test-form-elements
[driver]
Expand Down

0 comments on commit 621e89a

Please sign in to comment.