Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise fill-human-* doc strings #641

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading