From c414e5dbf55c092ce889744ed1a8943b21e73e85 Mon Sep 17 00:00:00 2001 From: Dave Roberts Date: Thu, 12 Sep 2024 17:34:24 -0500 Subject: [PATCH] Fix :fn/enabled --- CHANGELOG.adoc | 1 + src/etaoin/impl/xpath.clj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 0ef154b..14fe52a 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -30,6 +30,7 @@ A release with an intentional breaking changes is marked with: ** {issue}647[#647]: Fix logic bug in `intersects?`. Added tests to test suite. ({person}dgr[@dgr]) ** {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]) ** {issue}657[#657]: Make `set--timeout` functions resilient to reasonable non-integer timeouts (e.g., rationals, doubles, etc.). ({person}dgr[@dgr]) +** {issue}661[#661]: Fix `:fn/enabled`. ({person}dgr[@dgr]) * Docs ** {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]) diff --git a/src/etaoin/impl/xpath.clj b/src/etaoin/impl/xpath.clj index 72b1a71..060788d 100644 --- a/src/etaoin/impl/xpath.clj +++ b/src/etaoin/impl/xpath.clj @@ -79,7 +79,7 @@ (defmethod clause :fn/enabled [[_ bool]] - (node-boolean "@enabled" bool)) + (node-boolean "@disabled" (not bool))) (defmethod clause :fn/index [[_ idx]]