Skip to content

Commit 356bc50

Browse files
committed
[Tests] Fix selenium chrome issue
1 parent bb37f94 commit 356bc50

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/tests/test_proxy.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,13 @@ def setUp(self):
8181
self.driver = webdriver.Firefox()
8282
elif test_browser == "chrome":
8383
if IN_CI:
84+
_options = webdriver.ChromeOptions()
85+
_options.add_argument("--headless")
86+
_options.add_argument("--no-sandbox")
87+
_options.add_argument("--disable-dev-shm-usage")
88+
_options.add_argument("--window-size=1920,1080")
8489
self.driver = webdriver.Remote(
85-
options=webdriver.ChromeOptions(),
90+
options=_options,
8691
command_executor="http://selenium__standalone-chrome:4444/wd/hub",
8792
)
8893
else:

0 commit comments

Comments
 (0)