Skip to content

Commit c414e5d

Browse files
committed
Fix :fn/enabled
1 parent f2003d4 commit c414e5d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ A release with an intentional breaking changes is marked with:
3030
** {issue}647[#647]: Fix logic bug in `intersects?`. Added tests to test suite. ({person}dgr[@dgr])
3131
** {issue}649[#649]: When supplied a vector argument for `q-text`, `fill-multi` and `fill-human-multi` now fill fields in the order that fields appear in the vector. Previously, the order was not guaranteed. ({person}dgr[@dgr])
3232
** {issue}657[#657]: Make `set-<xyz>-timeout` functions resilient to reasonable non-integer timeouts (e.g., rationals, doubles, etc.). ({person}dgr[@dgr])
33+
** {issue}661[#661]: Fix `:fn/enabled`. ({person}dgr[@dgr])
3334
* Docs
3435
** {issue}656[#656]: Correctly describe behavior when query's parameter is a string. The User Guide and `query` doc strings say that a string passed to `query` is interpreted as an XPath expression. In fact, `query` interprets this as either XPath or CSS depending on the setting of the driver's `:locator` parameter, which can be changed. ({person}dgr[@dgr])
3536

src/etaoin/impl/xpath.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
(defmethod clause :fn/enabled
8181
[[_ bool]]
82-
(node-boolean "@enabled" bool))
82+
(node-boolean "@disabled" (not bool)))
8383

8484
(defmethod clause :fn/index
8585
[[_ idx]]

0 commit comments

Comments
 (0)