Cannot sendKeys to input that located in shadowDOM: element is not reachable by keyboard
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
People
(Reporter: xotabu4, Unassigned)
References
Details
Attachments
(2 files)
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)
-
Open website with shadow DOM input, for example: https://www.sixt.com/ride
-
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') -
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
Reporter | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Updated•2 years ago
|
Description
•