Skip to content

Commit

Permalink
JavascriptException: Message: javascript error: k3dRefresh is not def…
Browse files Browse the repository at this point in the history
…ined #354
  • Loading branch information
artur-trzesiok committed Jan 6, 2024
1 parent 9c9222f commit bc185b9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions k3d/headless.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,19 @@ def get_headless_driver(no_headless=False):

return webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()),
options=options)


def get_headless_firefox_driver(no_headless=False):
from selenium import webdriver
from selenium.webdriver.firefox.service import Service as FirefoxService
from webdriver_manager.firefox import GeckoDriverManager

options = webdriver.FirefoxOptions()

options.add_argument("--no-sandbox")

if not no_headless:
options.add_argument("--headless")

return webdriver.Firefox(service=FirefoxService(GeckoDriverManager().install()),
options=options)

0 comments on commit bc185b9

Please sign in to comment.