Open Bug 1457774 Opened 6 years ago Updated 2 years ago

WebDriver:SendKeysParameters:ToJson `value` needs to be `text` per the w3c spec

Categories

(Testing :: General, defect, P3)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: Phrohdoh, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36

Steps to reproduce:

Issue an `ElementSendKeys` webdriver command.


Actual results:

Sent JSON `{"value":"12345"}`.


Expected results:

Expected JSON was `{"text":"12345"}`.


Code to be changed:

https://hg.mozilla.org/mozilla-central/file/tip/testing/webdriver/src/command.rs#l817


See spec:

https://www.w3.org/TR/webdriver/#element-send-keys

> The remote end steps for Element Send Keys are:

> Let `text` be the result of getting a property called "text" from the parameters argument.

> If `text` is not a *String*, return an error with *error code invalid argument*.
Summary: WebDriver:SendKeysParameters :ToJson `value` needs to be `text` per the w3c spec → WebDriver:SendKeysParameters:ToJson `value` needs to be `text` per the w3c spec
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.