Input elements inside Shadow-DOM are not keyboard-interactable
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: dstekanov.tech, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Steps to reproduce:
Hello!
I have found an issue with Shadow-DOM while trying to access it via Selenium.
If I have an <input> element inside shadow-tree and trying to use sendKeys it throws me an error that the element is not keyboard-interactable.
FF v74
Could you take a look at this issue, please?
Actual results:
error: input element is not keyboard-interactable
Expected results:
the text field should be filled with value by "WebElement.sendKeys"
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Hello dstekanov.tech,
thanks for reporting the issue. Do you have simple test-case which you can share with us? That could accelerate the analysis.
Reporter | ||
Comment 2•5 years ago
|
||
Hi Mirko!
I've created a simple example (using Selenide wrapper to reduce boilerplate code) there https://github.com/dstekanov/shadow-dom-ff-example/blob/master/src/test/java/example/ShadowDomTest.java
Comment 3•5 years ago
|
||
Thanks for the test-case. After a first glance, the bug could also be in Selenium (or Selenide). Especially, since Selenium has numerous open issues mentioning sendKeys
(https://github.com/SeleniumHQ/selenium/issues?q=is%3Aissue+is%3Aopen+sendKeys).
Reporter | ||
Comment 4•5 years ago
|
||
If this case works in another browser(e.g. chrome) can we state that 'sendKeys' works well?
Comment 5•5 years ago
|
||
(In reply to dstekanov.tech from comment #4)
If this case works in another browser(e.g. chrome) can we state that 'sendKeys' works well?
It depends on how sendKeys
is implemented. If it doesn't contain browser-specific code, then it's likely that the bug is in Firefox.
Reporter | ||
Comment 6•5 years ago
|
||
Hi Mirko!
I've found a similar issue (seems my issues is a duplicate now): https://bugzilla.mozilla.org/show_bug.cgi?id=1503860
As I understand(not sure if correctly), it should be supported by WebDriver first... https://github.com/w3c/webdriver/issues/350
Comment 7•5 years ago
|
||
Thanks for finding the similar issue. Closing this one as a duplicate.
Description
•