Automating Shadow DOM with Selenium WebDriver

How to drive web elements inside a shadow root on a web page

Zhimin Zhan
4 min readDec 27, 2021

--

A repost of my daughter’s article (her first on Medium) with permission. I added it here for the convenience of my blog subscribers.

This article is included in my “How to in Selenium WebDriver” series.

--

--

Zhimin Zhan

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.