SafariDriver: Non-printable keys sent to input with `send_keys`.

Number:rdar://32165253 Date Originated:2017-05-12
Status:Open Resolved:
Product:Safari Product Version:
Classification: Reproducible:Always
When using `send_keys` with SafariDriver to test keyboard interactions with a text input element, non-printable keys are included in the input's changed value.

Steps to Reproduce:
1. Install SafariDriver (9 or 10).
2. Execute the `send_keys` command with a non-printable key (e.g., `keys.ARROW_DOWN`) against an active input element.
3. Read the input's value.

Expected Results:
The input value should not be changed. For example, if the starting value is an empty string (""), the value after pressing a non-printable key should still be an empty string.

Actual Results:
The input value string contains the non-printable character. For example, after executing `send_keys` with the down arrow against an input element with an empty value and reading the value, the input value's length is 1 (instead of 0) and the character code (read using JavaScript's `charCodeAt` method) is 57363 (instead of `NaN`).



Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!