-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
[🐛 Bug]: Issue with shadowroot access #15732
Copy link
Copy link
Closed
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-pyPython BindingsPython BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intendedI-regressionSomething was working but we "fixed" itSomething was working but we "fixed" itOS-windows
Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-pyPython BindingsPython BindingsD-chromeI-defectSomething is not working as intendedSomething is not working as intendedI-regressionSomething was working but we "fixed" itSomething was working but we "fixed" itOS-windows
Description
I tried to access the shadow DOM. I have trouble to use the identified shadow root.
See code below.
When I try to access via shadowroot / shadowroot2 I get an error
AttributeError: 'ShadowRoot' object has no attribute 'id'. Did you mean: '_id'?
Actually, this is right because wether I use the direct javascript or the shadow_root property, I get an object with just a property "_id". I am pretty sure it worked in the past.
If I do a shadowroot.id = shadowroot._id it works again.
I guess evaluation fo shadowroot is buggy (or is it a webdriver issue ?)
Selenium was updated.
Reproducible Code
ℹ️ Last known working version:
4.25 but earlier Chrome / Chromedriver