Skip to content

Commit cbbff82

Browse files
committed
Formatting
1 parent 5202470 commit cbbff82

File tree

7 files changed

+333
-124
lines changed

7 files changed

+333
-124
lines changed

py/selenium/webdriver/remote/shadowroot.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
# under the License.
1717

1818
from hashlib import md5 as md5_hash
19-
from typing import Union, TYPE_CHECKING
19+
from typing import TYPE_CHECKING, Union
20+
2021
if TYPE_CHECKING:
2122
from selenium.webdriver.support.relative_locator import RelativeBy
2223

@@ -83,7 +84,9 @@ def find_element(self, by: "Union[ByType, RelativeBy]" = By.ID, value: str = Non
8384
by = By.CSS_SELECTOR
8485
value = f'[name="{value}"]'
8586

86-
return self._execute(Command.FIND_ELEMENT_FROM_SHADOW_ROOT, {"using": by, "value": value})["value"]
87+
return self._execute(
88+
Command.FIND_ELEMENT_FROM_SHADOW_ROOT, {"using": by, "value": value}
89+
)["value"]
8790

8891
def find_elements(self, by: "Union[ByType, RelativeBy]" = By.ID, value: str = None):
8992
"""Find elements inside a shadow root given a By strategy and locator.
@@ -121,7 +124,9 @@ def find_elements(self, by: "Union[ByType, RelativeBy]" = By.ID, value: str = No
121124
by = By.CSS_SELECTOR
122125
value = f'[name="{value}"]'
123126

124-
return self._execute(Command.FIND_ELEMENTS_FROM_SHADOW_ROOT, {"using": by, "value": value})["value"]
127+
return self._execute(
128+
Command.FIND_ELEMENTS_FROM_SHADOW_ROOT, {"using": by, "value": value}
129+
)["value"]
125130

126131
# Private Methods
127132
def _execute(self, command, params=None):

0 commit comments

Comments
 (0)