Skip to content

Commit 97ba80d

Browse files
committed
Run the selenium tests in headless mode
1 parent a9fd5c5 commit 97ba80d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

features/browser.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
from selenium import webdriver
22

33

4+
chrome_options = webdriver.chrome.options.Options()
5+
chrome_options.add_argument("--headless")
6+
chrome_options.add_argument("--window-size=1024x768")
7+
8+
49
class Browser(object):
5-
driver = webdriver.Chrome()
10+
driver = webdriver.Chrome(chrome_options=chrome_options)
611
driver.implicitly_wait(5)
712

813
def close(context):

0 commit comments

Comments
 (0)