Show individual "keystrokes" on setValue #2710
Unanswered
gelform
asked this question in
Help Needed
Replies: 2 comments 3 replies
-
|
Unfortunately its not something available out of the box, would want to understand the use case here. @gelform |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Worked perfectly! Thank you so much!
…On Wed, May 26, 2021 at 8:01 AM jmervis99 ***@***.***> wrote:
I just wrote a function
"setValueSlow": function(field, value, browser) {
var text = "";
var i = 0;
var str = value ;
var length = str.length
while (i < str.length) {
var res = str.slice(i, i+1);
browser.pause(350)
browser.setValue(field, res)
i++;
}
Just like setValue but slices up the input and pauses between each
character.
Hope this helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2710 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASNRXMYT3AHKAPUGQSWCZ3TPTPH5ANCNFSM45JETDIQ>
.
--
Corey Maass
646-228-5048
Eastern Timezone (UTC-5:00)
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when using
setValuein nightwatch.js, input values are "pasted" i.e. inputs are populated all at once. Is there a way to "type" values with a delay between keystrokes to better emulate a human typing? Without adding.pause(10)between each rule?Beta Was this translation helpful? Give feedback.
All reactions