diff --git a/py/selenium/webdriver/common/selenium_manager.py b/py/selenium/webdriver/common/selenium_manager.py index 73085fd8e9f69..8fb974d653022 100644 --- a/py/selenium/webdriver/common/selenium_manager.py +++ b/py/selenium/webdriver/common/selenium_manager.py @@ -41,8 +41,8 @@ def get_binary() -> Path: :Returns: The Selenium Manager executable location """ - if os.getenv("SE_MANAGER_PATH"): - path = os.getenv("SE_MANAGER_PATH") + if path := os.getenv("SE_MANAGER_PATH") is not None: + return Path(path) else: platform = sys.platform