mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: Use WEBDRIVER_OPTION_ARGS with Playwright (#26315)
(cherry picked from commit 3f9183a162)
This commit is contained in:
committed by
Michael S. Molina
parent
9c109700ff
commit
b5cb3ec13c
@@ -137,7 +137,8 @@ class WebDriverPlaywright(WebDriverProxy):
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user