Skip to content

Commit

Permalink
chore: Use WEBDRIVER_OPTION_ARGS with Playwright (apache#26315)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje authored Dec 20, 2023
1 parent eb65cea commit 3f9183a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/utils/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def get_screenshot( # pylint: disable=too-many-locals, too-many-statements
self, url: str, element_name: str, user: User
) -> bytes | None:
with sync_playwright() as playwright:
browser = playwright.chromium.launch()
browser_args = current_app.config["WEBDRIVER_OPTION_ARGS"]
browser = playwright.chromium.launch(args=browser_args)
pixel_density = current_app.config["WEBDRIVER_WINDOW"].get(
"pixel_density", 1
)
Expand Down

0 comments on commit 3f9183a

Please sign in to comment.