WebDriver:SendKeysToElement support for non-typeable form controls (date, color, ...)
Categories
(Remote Protocol :: Marionette, defect, P3)
Tracking
(Not tracked)
People
(Reporter: whimboo, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [webdriver:backlog])
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
| Reporter | ||
Comment 4•2 years ago
|
||
-
inputelements of typedateonly work when a ISO compatible date like2023-05-03has been specified. It doesn't work with formats like03.05.2023. I'm not sure if that is expected or not given that nothing in the WebDriver classic specification actually points out this requirement. But other browsers like Chrome seem to also support other formats. Maybe we have to try to read the date string and convert to ISO internally before setting the value? -
colorand other types of non-typeable form control's are not implemented right now. There is only date and time right now.
Lets discuss in next week's triage meeting in how to prioritize this bug.
| Reporter | ||
Comment 5•2 years ago
|
||
It's unfortunate that the value of such input types cannot be set directly, but there is still the workaround by using Execute Script. Right now we do not have seen that many reports and assume it's not failing that often.
Comment 6•2 years ago
|
||
Thanks for investigating this.
Is it possible to make it as forgiving as possible and not stop operation like element.send_keys() from working without any indication, improper format etc.
Chromium tend to be much more forgiving, and due to deadlines I have no time to investigate much why it fails other places.
So very often I do not have time to make sure it works for firefox/geckodriver if it just works in chromium.
| Reporter | ||
Comment 7•2 years ago
|
||
Well, there is a bug for Chromium to make its behavior more strict but that hasn't been fixed yet:
https://bugs.chromium.org/p/chromedriver/issues/detail?id=3274
Also there is https://github.com/w3c/webdriver/issues/1470 which is about a validation check. But there is no decision yet.
Description
•