Skip to content

Commit 38eb079

Browse files
committed
Trying different options
Signed-off-by: John Rofrano <johnnyroy@johnrofrano.com>
1 parent 2b51a41 commit 38eb079

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/bdd-tests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ jobs:
5858
DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb"
5959

6060
- name: Debug runtime environment
61-
run: which firefox; which geckodriver; echo $PATH; env
61+
run: which firefox; firefox --version; which geckodriver; geckodriver --version; env
6262

6363
- name: Run Integration Tests
64-
run: behave
64+
run: |
65+
behave -v
66+
cat geckodriver.log
6567
env:
6668
DRIVER: "firefox"
6769

features/environment.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def get_firefox():
4949
print("Running Behave using the Firefox driver...\n")
5050
# Set the environment variable for the Selenium WebDriver
5151
os.environ["SELENIUM_DRIVER"] = "geckodriver"
52-
options = webdriver.FirefoxOptions()
52+
# options = webdriver.FirefoxOptions()
53+
options = webdriver.firefox.options.Options()
54+
options.add_argument("--no-sandbox")
5355
options.add_argument("--headless")
56+
options.add_argument("--disable-gpu")
57+
options.add_argument("--window-size=1280,1300")
5458
return webdriver.Firefox(options=options)

0 commit comments

Comments
 (0)