I think this has nothing to do with my package :)

selenium.common.exceptions.WebDriverException: Message: unknown error: unable to discover open pages

And this should be enough to reproduce it (deps: python3-selenium, chromium-driver):

from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
import os

data_dir = os.getenv('AUTOPKGTEST_TMP', default='/tmp') + '/google-chrome'

options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--headless')
options.add_argument('--disable-gpu')
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--profile-directory=Default')
options.add_argument('--user-data-dir=' + data_dir)
driver = webdriver.Chrome(options=options)

print("Running tests")
driver.get("http://localhost:8888/SpecRunner.html?random=false";)


Let me know if you can reproduce this WebDriverException

Reply via email to