yashaka / selene

User-oriented Web UI browser tests in Python

Home Page:https://yashaka.github.io/selene/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v.2.0.0b14 Incompatibility with webdriver-manager latest versions

dimaklepikov opened this issue · comments

There is an issue occurs with latest WDM available. Maybe, there is a way to migrate automatically to the latest one?

ERROR: Cannot install selene==2.0.0b14 and webdriver-manager==4.0.1 because these package versions have conflicting dependencies.
The conflict is caused by:
    The user requested webdriver-manager==4.0.1
    selene 2.0.0b14 depends on webdriver-manager==3.8.3

The browser object cant be used for Chrome > 115v and the following code causes ValueError

def browser_setup(debug=False):
    options = webdriver.ChromeOptions()

    if debug == "False":
        options.add_argument("--headless")
    options.add_argument("--no-sandbox")
    options.add_argument("--disable-gpu")
    options.add_argument("--window-size=1920x1080")
    options.add_argument("--disable-dev-shm-usage")
    options.add_argument("--disable-notifications")
    options.add_argument("--lang=en-US")
    prefs = {"download.default_directory": f"{base_dir}/downloads"}
    options.add_experimental_option("prefs", prefs)
    browser.config.driver_options = options
    browser.config.timeout = 15
    return browser
    
.......

ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/117.0.5938/chromedriver_mac64.zip```

Or, is there a way to use latest Chrome and current stable Selene version?

Thanks, the upgrade resolved this