ShadowDOM on Firefox


Im doing tests on a webpage with some elements inside a ShadowDOM, I follow the instructions on this page: Automation testing of Shadow DOM elements with Katalon Studio | Katalon Docs

Its working fine on Chrome and Edge, however with Firefox (Geckodriver v.031) the test keeps failing with this error :
‘Caused by: org.openqa.selenium.JavascriptException: Cyclic object value’

Searching the web I found some post saying that geckodriver doesnt support ShadowDOM, is it still the case ? Any workaround to get access component inside ShadowDOM with Firefox?


Geckodriver does support Shadow DOM. That doesn’t mean it supports the APIs you’re using – like this one, for example: 1700097 - Implement support for Find Element(s) From Shadow Root

1 Like