Closed Bug 1574497 Opened 5 years ago Closed 5 years ago

Cannot sendKeys to input that located in shadowDOM: element is not reachable by keyboard

Categories

(Remote Protocol :: Marionette, defect)

68 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1503860

People

(Reporter: xotabu4, Unassigned)

References

Details

Attachments

(2 files)

Attached image 2019-08-16 17.20.01.jpg

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

Steps to reproduce:

Geckodriver version:
v0.24.0/geckodriver-v0.24.0-macos.tar.gz

Firefox version:
68.0.2 (64-bit)

  1. Open website with shadow DOM input, for example: https://www.sixt.com/ride

  2. Find input element in shadowDOM (JavaScript bindings, Protractor):
    // just getting element id from shadow DOM
    let input = element(By.js(function () {
    return Array.prototype.slice.call(
    document.querySelector('ride-ibe')
    .shadowRoot.querySelectorAll('#mdr-ibe')
    );
    })).$('#pickup-input')

  3. Send keys to element:
    input.sendKeys('BlaBla')

Actual results:

ElementNotInteractableError: Element <input id="pickup-input" class="ibe-input pickup"> is not reachable by keyboard
at Object.throwDecodedError (/usr/src/app/node_modules/selenium-webdriver/lib/error.js:514:15)
at parseHttpResponse (/usr/src/app/node_modules/selenium-webdriver/lib/http.js:519:13)
at doSend.then.response (/usr/src/app/node_modules/selenium-webdriver/lib/http.js:441:30)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)

Expected results:

Same code works fine for Chrome. Chromedriver successfully works with shadowDOM elements, and does not have such bug.

Expected geckodriver to work with shadow dom elements same way as with regular elements

Attached image 2019-08-16 17.19.45.jpg
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: