79138880

Date: 2024-10-29 20:25:15
Score: 2
Natty:
Report link

What ended up working:

var shadowParent = driver.FindElement(By.CssSelector("macroponent-abc123"));
var shadowRoot = shadowParent.GetShadowRoot();

var somethingInsideShadowRoot = shadowRoot.FindElement(By.CssSelector("table"));

I had to wrap my head around shadow DOM and its purposes on websites, then I was able to get it sorted out. Thanks to Rahul for pointing me in the right direction!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: MD_Reptile