Support for Multi Level Shadow DOM Elements in Selenium
175 views
Skip to first unread message
Sushma J
unread,
May 6, 2021, 3:21:09 AM5/6/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Hello everyone,
I have been using Selenium for automating test cases in java. Currently, we are trying to automate testcases for a website which uses multi-level shadow dom elements with nesting and the regular Xpath commands do not work . Instead I am using JavaScriptExecutor for accessing the shadow DOM elements. But it becomes very difficult to manage because if any of the shadow-roots in the chain is removed, the code has to be modified. Can you let me know if there's any support from Selenium in the new version Selenium 4 for the same or will any support be provided in future release versions?
Thanks in advance!
Serguei Kouzmine
unread,
May 23, 2021, 10:44:22 PM5/23/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message