How to Find Elements in the Shadow DOM
Web components keep their elements in a shadow root, apart from the rest of the page, so a normal locator doesn't find them. The test has to go through the shadow root, or use a tool whose locators look inside it.