Skip to content

Commit

Permalink
[py] ElementScrollBehavior fix for ie/options 4.11.0 (#12462)
Browse files Browse the repository at this point in the history
[py] ElementScrollBehavior fix for ie/options

Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
  • Loading branch information
sandeepsuryaprasad and diemol committed Aug 1, 2023
1 parent c599725 commit afe8f71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/selenium/webdriver/ie/options.py
Expand Up @@ -59,8 +59,8 @@ def __set__(self, obj, value) -> None:
raise ValueError(f"{self.name} should be of type {self.expected_type.__name__}")

if self.name == "elementScrollBehavior" and value not in [
ElementScrollBehavior.TOP.value,
ElementScrollBehavior.BOTTOM.value,
ElementScrollBehavior.TOP,
ElementScrollBehavior.BOTTOM,
]:
raise ValueError("Element Scroll Behavior out of range.")
obj._options[self.name] = value
Expand Down

0 comments on commit afe8f71

Please sign in to comment.