diff --git a/py/selenium/webdriver/ie/options.py b/py/selenium/webdriver/ie/options.py index 51363ae8f436b..34fc51ff36e04 100644 --- a/py/selenium/webdriver/ie/options.py +++ b/py/selenium/webdriver/ie/options.py @@ -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