[py] Add missing 'id' property to ShadowRoot class by cgoldberg ยท Pull Request #15739 ยท SeleniumHQ/selenium

User description

๐Ÿ”— Related Issues

Fixes #15734
Fixes #15732

๐Ÿ’ฅ What does this PR do?

This PR adds an id property to the selenium.webdriver.remote.shadowroot.ShadowRoot class.

This attribute was missing and causing errors when trying to access shadow_root

๐Ÿ”„ Types of changes

  • Bug fix (backwards compatible)

PR Type

Bug fix


Description

  • Add missing id property to ShadowRoot class

  • Fix errors when accessing shadow_root.id


Changes walkthrough ๐Ÿ“

Relevant files
Bug fix
shadowroot.py
Add `id` property to ShadowRoot class                                       

py/selenium/webdriver/remote/shadowroot.py

  • Added an id property to the ShadowRoot class
  • Ensures access to the shadow root's internal id
  • Addresses errors when accessing shadow_root.id
  • +4/-0     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.