mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
tests - fix missing geckodriver log file in ui tests
This commit is contained in:
parent
84eb947206
commit
7d69b91056
1 changed files with 7 additions and 3 deletions
|
@ -163,15 +163,19 @@ def access_page(
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
driver_func = partial(webdriver.Firefox, options=firefox_options)
|
driver_func = partial(
|
||||||
|
webdriver.Firefox,
|
||||||
|
service=Service(log_output="./geckodriver.log"),
|
||||||
|
options=firefox_options
|
||||||
|
)
|
||||||
if TEST_TYPE == "dev":
|
if TEST_TYPE == "dev":
|
||||||
driver_func = partial(
|
driver_func = partial(
|
||||||
webdriver.Firefox,
|
webdriver.Firefox,
|
||||||
service=Service(Service(executable_path="./geckodriver" if "geckodriver" in listdir(Path.cwd()) else "/usr/local/bin/geckodriver", log_output="./geckodriver.log")),
|
service=Service(executable_path="./geckodriver" if "geckodriver" in listdir(Path.cwd()) else "/usr/local/bin/geckodriver", log_output="./geckodriver.log"),
|
||||||
options=firefox_options,
|
options=firefox_options,
|
||||||
)
|
)
|
||||||
|
|
||||||
with webdriver.Firefox(options=firefox_options) as driver:
|
with driver_func() as driver:
|
||||||
try:
|
try:
|
||||||
driver.delete_all_cookies()
|
driver.delete_all_cookies()
|
||||||
driver.maximize_window()
|
driver.maximize_window()
|
||||||
|
|
Loading…
Reference in a new issue