Access elements inside the shadow-root

Viewed 3912

Is it possible to find elements of the Shadow DOM with java and selenium?

I want to take element from shadow root

<paper-input id="homeSearch" class="home-search-btn home-inputs" placeholder="Where would you like to go?" no-label-float="" tabindex="0" aria-disabled="false"><iron-icon icon="-search-" slot="prefix" class="form-icons search-icon"></iron-icon></paper-input>

I want to send A Input on homesearch Like driver.findElement(By.id("homesearch")); I search on internet but not get any appropiate solution.

enter image description here

Any type of help will really appreciated

1 Answers
Related