This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25695 - 14.3.3 - sendKeys is defined as high level command but should be low level
Summary: 14.3.3 - sendKeys is defined as high level command but should be low level
Status: RESOLVED INVALID
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2014-05-13 21:46 UTC by Andrey Botalov
Modified: 2016-09-19 16:18 UTC (History)
3 users (show)

See Also:


Attachments

Description Andrey Botalov 2014-05-13 21:46:56 UTC
I think "sendKeys" should be defined as low level command and there is no other low level command for sending a key.

I think "clear" can be left as a high level command as it can be thought as sequence of backspace/delete keys.
Comment 1 Jim Evans 2014-06-20 19:54:38 UTC
Actually, the issue here is that there are no low-level keyboard commands defined. There should be two sendKeys commands: the current high-level one that is already defined, and a low-level one that has yet to be named. The difference is that the low-level one does not automatically clear the modifier keys at the end of the call (Ctrl, Alt, Shift, Meta, etc.), allowing the pressed modifier keys to be "sticky" for use with other actions like mouse events. The high-level sendKeys method does, by definition, release any and all modifier keys at the end of the call.