Browse files

If we're assuming a /th, then we should check for /th and not //th in…

… the condition
  • Loading branch information...
1 parent 0b10bda commit c933fe711dac89025cd4c63b84b2351d76e5c13d @semperos semperos committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/clj_webdriver/core_driver.clj
@@ -240,7 +240,7 @@
(let [attr-val-map (apply hash-map attr-val)
table-xpath (build-xpath :table (:table attr-val-map))
row-xpath (str "//tr[" (inc (:row attr-val-map)) "]")
- col-xpath (if (and (find-element driver (by-xpath (str table-xpath "//th")))
+ col-xpath (if (and (find-element driver (by-xpath (str table-xpath "/th")))
(zero? (:row attr-val-map)))
(str "/th[" (inc (:col attr-val-map)) "]")
(str "/td[" (inc (:col attr-val-map)) "]"))

0 comments on commit c933fe7

Please sign in to comment.