You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by kg...@apache.org on 2023/12/20 11:42:19 UTC

(superset) branch master updated: chore: Use WEBDRIVER_OPTION_ARGS with Playwright (#26315)

This is an automated email from the ASF dual-hosted git repository.

kgabryje pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 3f9183a162 chore: Use WEBDRIVER_OPTION_ARGS with Playwright (#26315)
3f9183a162 is described below

commit 3f9183a1628672d22e97284dfe9046d77a09e9fe
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Wed Dec 20 12:42:12 2023 +0100

    chore: Use WEBDRIVER_OPTION_ARGS with Playwright (#26315)
---
 superset/utils/webdriver.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset/utils/webdriver.py b/superset/utils/webdriver.py
index f7814bfd3b..4552600fc9 100644
--- a/superset/utils/webdriver.py
+++ b/superset/utils/webdriver.py
@@ -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
             )