This video will solve the issue with ShadowRoot with Chrome browser more than 96 version.
You might be getting this below exception -
org.openqa.selenium.remote.ShadowRoot cannot be cast to org.openqa.selenium.WebElement
java.lang.ClassCastException: org.openqa.selenium.remote.ShadowRoot cannot be cast to org.openqa.selenium.WebElement
Also we will see the new getShadowRoot() method with Selenium 4
Selenium java complete series -
https://bit.ly/qavbox-seleniumjava
Subscribe to this channel -
https://bit.ly/youtube-qavbox
Blog posts -
https://qavalidation.com
Make me awake & feel fresh always, so I can bring lot's of interesting topics for you all, Buy me a coffee?
http://buymeacoffee.com/qavalidation
Thank you for watching!