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 25014 - Should sendKeys just take a string rather than string[]?
Summary: Should sendKeys just take a string rather than string[]?
Status: RESOLVED FIXED
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: https://dvcs.w3.org/hg/webdriver/raw-...
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2014-03-11 22:09 UTC by Marc Fisher
Modified: 2014-08-05 22:07 UTC (History)
3 users (show)

See Also:


Attachments

Description Marc Fisher 2014-03-11 22:09:11 UTC
The spec and current selenium impl have sendKeys taking a string[] parameter, but there is no specified difference behavior for the boundaries between the individual strings in the array (at least as far as I can see). Is there any reason not to just flatten this to take a single string rather than an array of strings?
Comment 1 Andrey Botalov 2014-05-13 21:44:06 UTC
Also interface tells that "keysToSend" is an array:
> void sendKeys (string[] keysToSend);

but prose tells that it's a sequence:
> Sends a sequence of keyboard events
Comment 2 David Burns :automatedtester 2014-07-07 16:06:05 UTC
This will now become a flat string
Comment 3 Marc Fisher 2014-08-05 22:07:14 UTC
Landed in:
https://dvcs.w3.org/hg/webdriver/rev/252cc0bfca44