Skip to content

Commit

Permalink
Revise fill-human-* doc strings (#641)
Browse files Browse the repository at this point in the history
Point user at fill-human-el for details on `opts`. Issue 637.
  • Loading branch information
dgr authored Aug 20, 2024
1 parent bee5211 commit 5d9d3ac
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/etaoin/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2779,17 +2779,17 @@
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)))

(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)))
Expand All @@ -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
Expand Down

0 comments on commit 5d9d3ac

Please sign in to comment.