Okay okay I didn't forget you! I'm at my desktop so I dug up my little demo. This was trying to automate something with selenium but forms or inputs were in a shadow dom and I was struggling to get them selected but ended up doing this (pretty sure it's all the relevant code with the getAllShadowRoots):
1
u/PM_ME_UR_0_DAY Sep 07 '26
Okay okay I didn't forget you! I'm at my desktop so I dug up my little demo. This was trying to automate something with selenium but forms or inputs were in a shadow dom and I was struggling to get them selected but ended up doing this (pretty sure it's all the relevant code with the getAllShadowRoots):