Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… the condition
  • Loading branch information...
commit c933fe711dac89025cd4c63b84b2351d76e5c13d 1 parent 0b10bda
@semperos semperos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/clj_webdriver/core_driver.clj
View
2  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)) "]"))
Please sign in to comment.
Something went wrong with that request. Please try again.