ShadowDOM on Firefox

Hello,

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?

Thanks

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

I encountered the same issue “Cyclic object value” when run script in Firefox. Does anyone know the workaround for it?

Thanks.

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!