Skip to content

Commit

Permalink
try fix selenium in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Dec 16, 2023
1 parent 7d4fa90 commit ffa0189
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ webdriver-manager = "^4.0.1"

[tool.poetry.group.pdf.dependencies]
cairosvg = "^2.7.1"
tinycss = "^0.4"
lxml = "^4.9.3"
cssselect = "^1.2.0"
tinycss2 = "^1.2.1"
cssselect2 = "^0.7.0"

[build-system]
requires = ["poetry-core"]
Expand Down Expand Up @@ -90,7 +89,7 @@ addopts = [
"--doctest-modules",
"--cov=sphinxcontrib.typer",
"--cov-report=html",
"--cov-fail-under=85",
"--cov-fail-under=80",
"--cov-report=term-missing:skip-covered",
"--no-cov-on-fail",
#"-x",
Expand Down
4 changes: 3 additions & 1 deletion sphinxcontrib/typer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,9 @@ def get_iframe_height(

# Set up headless browser options
options = Options()
options.headless = True
options.add_argument("--headless")
options.add_argument("--no-sandbox")
options.add_argument("--disable-dev-shm-usage")

# Initialize WebDriver
driver = webdriver.Chrome(
Expand Down

0 comments on commit ffa0189

Please sign in to comment.