Skip to content

Commit 128ba0e

Browse files
authored
[py] Add missing 'id' property to ShadowRoot class (#15739)
1 parent 6c53551 commit 128ba0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

py/selenium/webdriver/remote/shadowroot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ def __repr__(self) -> str:
3939
type(self), self.session.session_id, self._id
4040
)
4141

42+
@property
43+
def id(self) -> str:
44+
return self._id
45+
4246
def find_element(self, by: str = By.ID, value: str = None):
4347
"""Find an element inside a shadow root given a By strategy and
4448
locator.

0 commit comments

Comments
 (0)