How to read an element text inside the shadow root

216 Views Asked by At

I want to read the date value inside this shadow root.

Image1

even though I tried below it says 'no such shadow root'. How can I correct this?

driver.FindElement(CustomTimeHours).GetShadowRoot().FindElement(By.Id("placeholder")).Text
0

There are 0 best solutions below