dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

Feature Request: Keeping a button pressed (sending keys without triggering keyup events) #107

Open Wianco opened 10 years ago

Wianco commented 10 years ago

Hi Sebastian,

I would like to request the feature for keeping a button pressed (similar to send multiple times the the same button, but without triggering the keyup event).

A possible test scenario in which we would like to use the feature is the follwing: Our IPTV Client offers the so called feature "Quick Zapping", which means that the user is keeping the "+" button pressed to zap blockwise through a channel list. In this case the upkey event is never triggered, so implementing .sendKeys('body', '\uE025') // for "+" key .sendKeys('body', '\uE025') .sendKeys('body', '\uE025') .sendKeys('body', '\uE025')

does not result in the same client behavior as pressing a key permanently.

Thank you very much and we hope you can integrate it during the next Hackathlon. :-)

Best regards, Michael Wilczynska.

Better IT, Better Solutions - Wianco Solution Group. http://www.Wianco.com

asciidisco commented 10 years ago

This is possible with Webdriver (see https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/keys), but we haven't implemented the API yet. I´ll track this as an enhancement.