- stergema
- Posts : 2
Join date : 2013-03-18
keypress delay and duration
Mon Mar 18, 2013 4:33 pm
Hi.
Can i set how long a keyboard character is pressed and pause between multiple key presses(string)?
Thank you.
Can i set how long a keyboard character is pressed and pause between multiple key presses(string)?
Thank you.
Re: keypress delay and duration
Thu Mar 21, 2013 8:36 pm
enter a single character at a time , wait for some second and enter other keys.
for ex:
driver.pressKey("S")
wait(3)
driver.pressKey("T")
wait(3)
driver.pressKey("R")
wait(3)
driver.pressKey("I")
wait(3)
driver.pressKey("N")
wait(3)
driver.pressKey("G")
wait(3)
Like this you can wait and text append it. check for exact syntax.
Hope this will help. best of luck.
Bye
for ex:
driver.pressKey("S")
wait(3)
driver.pressKey("T")
wait(3)
driver.pressKey("R")
wait(3)
driver.pressKey("I")
wait(3)
driver.pressKey("N")
wait(3)
driver.pressKey("G")
wait(3)
Like this you can wait and text append it. check for exact syntax.
Hope this will help. best of luck.
Bye
- stergema
- Posts : 2
Join date : 2013-03-18
Re: keypress delay and duration
Sat Mar 23, 2013 3:15 pm
Thank you, i found a similar solution else where. I have another problem now.
I want it to press a key for a certain time, can this be done?
For example i want to simulate pressing the key "S" and keep it pressed for 1347 miliseconds, can this be done in selenium?
Thank you.
I want it to press a key for a certain time, can this be done?
For example i want to simulate pressing the key "S" and keep it pressed for 1347 miliseconds, can this be done in selenium?
Thank you.
Permissions in this forum:
You cannot reply to topics in this forum
|
|