The above codes worked. The problem was that I was using an old version of cefsharp. When I installed the new version, the results came back correct and the code worked. The reason I didn't delete the question is that I obtained these codes by doing a lot of research. There are not many examples. Maybe someone else needs this kind of code. It will be an example for those who ask how to bypass ShadowRoot.