From 5d9d3ac4ae8187d0c2eba9eb086c62111b763db5 Mon Sep 17 00:00:00 2001 From: Dave Roberts Date: Tue, 20 Aug 2024 13:34:30 -0500 Subject: [PATCH] Revise fill-human-* doc strings (#641) Point user at fill-human-el for details on `opts`. Issue 637. --- src/etaoin/api.clj | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/etaoin/api.clj b/src/etaoin/api.clj index a37c1c2..d2311f3 100644 --- a/src/etaoin/api.clj +++ b/src/etaoin/api.clj @@ -2779,9 +2779,7 @@ See [[query]] for details on `q`. - `opts` - - `:mistake-prob` probability of making a typo (0 to 1.0) (default: `0.1`) - - `:pause-max` maximum amount of time in seconds to pause between keystrokes (can be fractional) (default: `0.2`)" + See [[fill-human-el]] for details on `opts`." ([driver q text] (fill-human driver q text {})) ([driver q text opts] (fill-human-el driver (query driver q) text opts))) @@ -2789,7 +2787,9 @@ (defn fill-active-human "Fills the currently active element with `text` as if it were a real human using `opts`. This is a simple convience function wrapped - around `get-active-element` and `fill-human-el`." + around `get-active-element` and `fill-human-el`. + + See [[fill-human-el]] for details on `opts`." ([driver text] (fill-active-human driver text {})) ([driver text opts] (fill-human-el driver (get-active-element driver) text opts))) @@ -2803,9 +2803,7 @@ See [[query]] for details on `q`s. - `opts` - - `:mistake-prob` probability of making a typo (0 to 1.0) (default: `0.1`) - - `:pause-max` maximum amount of time in seconds to pause between keystrokes (can be fractional) (default: `0.2`)" + See [[fill-human-el]] for details on `opts`." ([driver q-text] (fill-human-multi driver q-text {})) ([driver q-text opts] (cond