mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 22:40:01 -04:00
disable unneeded protocols in curl and fix unit tests on arm64
This commit is contained in:
parent
f71fba0c05
commit
5bcff0228b
3 changed files with 18 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
import unittest
|
||||
import shutil
|
||||
|
||||
import selenium.common.exceptions
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
|
||||
from selenium.webdriver.common.by import By
|
||||
|
@ -18,7 +20,12 @@ class JSTest(unittest.TestCase):
|
|||
options.add_argument("--disable-gpu")
|
||||
options.set_capability("goog:loggingPrefs", {"browser": "ALL"})
|
||||
|
||||
self.browser = webdriver.Chrome(options=options)
|
||||
try:
|
||||
self.browser = webdriver.Chrome(options=options)
|
||||
except selenium.common.exceptions.NoSuchDriverException:
|
||||
chromedriver_path = shutil.which("chromedriver")
|
||||
service = webdriver.ChromeService(executable_path=chromedriver_path)
|
||||
self.browser = webdriver.Chrome(options=options, service=service)
|
||||
|
||||
def tearDown(self):
|
||||
self.browser.quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue