Share
Go down
stergema
Posts : 2
Join date : 2013-03-18

keypress delay and duration

on 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.
avatar
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: keypress delay and duration

on 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

_________________
Spread Your Knowledge About Selenium Tool.

Administrator
Email: selenium.discussion.thread@live.com
Forum: http://seleniumforum.forumotion.net
stergema
Posts : 2
Join date : 2013-03-18

Re: keypress delay and duration

on 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.
Sponsored content

Re: keypress delay and duration

Back to top
Permissions in this forum:
You cannot reply to topics in this forum