Closed Bug 1622552 Opened 5 years ago Closed 5 years ago

Input elements inside Shadow-DOM are not keyboard-interactable

Categories

(Core :: DOM: Core & HTML, defect)

74 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1574497

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"

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

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.

Flags: needinfo?(dstekanov.tech)

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

Flags: needinfo?(dstekanov.tech)

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).

If this case works in another browser(e.g. chrome) can we state that 'sendKeys' works well?

(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.

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

Thanks for finding the similar issue. Closing this one as a duplicate.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.