Skip to content

Commit afe8f71

Browse files
[py] ElementScrollBehavior fix for ie/options 4.11.0 (#12462)
[py] ElementScrollBehavior fix for ie/options Co-authored-by: Diego Molina <[email protected]>
1 parent c599725 commit afe8f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/selenium/webdriver/ie/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def __set__(self, obj, value) -> None:
5959
raise ValueError(f"{self.name} should be of type {self.expected_type.__name__}")
6060

6161
if self.name == "elementScrollBehavior" and value not in [
62-
ElementScrollBehavior.TOP.value,
63-
ElementScrollBehavior.BOTTOM.value,
62+
ElementScrollBehavior.TOP,
63+
ElementScrollBehavior.BOTTOM,
6464
]:
6565
raise ValueError("Element Scroll Behavior out of range.")
6666
obj._options[self.name] = value

0 commit comments

Comments
 (0)