How to interact with shadow DOM in Selenium?
In one of my recent automation projects, I was writing code to click on a certain element on the webpage. It was a very simple element with an id avatar. To my surprise, Selenium failed to find that element and threw an exception NoSuchElementException . I inspected that element more carefully and found out that …