Skip to content

Commit

Permalink
add click on field to fill-human (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uunnamed authored Aug 11, 2020
1 parent a9f3d69 commit 2f66539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/etaoin/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2504,6 +2504,8 @@

rand-char (fn [] (-> 26 rand-int (+ 97) char))
wait-key (fn [] (wait (min (rand) pause-max)))]
(click-el driver el)
(wait-key)
(doseq [key text]
(when (< (rand) mistake-prob)
(fill-el driver el (rand-char))
Expand Down

0 comments on commit 2f66539

Please sign in to comment.