Skip to content

Commit

Permalink
fixup! Replaced Firefox with Chromium for Selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonb committed Aug 11, 2024
1 parent 440d1e8 commit 5b4653d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion test_project/qunit-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,27 @@
import time

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By

ROOT = os.path.abspath(os.path.dirname(__file__))
URL = "file://" + ROOT + "/qunit.html"
TIMEOUT = 5

driver = webdriver.Chrome()
chrome_options = Options()
options = [
"--headless",
"--disable-gpu",
"--window-size=1920,1200",
"--ignore-certificate-errors",
"--disable-extensions",
"--no-sandbox",
"--disable-dev-shm-usage"
]
for option in options:
chrome_options.add_argument(option)

driver = webdriver.Chrome(options=chrome_options)
driver.set_page_load_timeout(TIMEOUT)
driver.get(URL)

Expand Down

0 comments on commit 5b4653d

Please sign in to comment.