Esempio n. 1
0
def test_can_hold_autocreated_browser_open():
    config.hold_browser_open = True
    visit(start_page)
    webdriver = driver()
    factory.kill_all_started_drivers()
    assert factory.is_driver_still_open(webdriver)
    webdriver.quit()
Esempio n. 2
0
def test_can_auto_close_browser():
    config.hold_browser_open = False
    visit(start_page)
    webdriver = driver()
    factory.kill_all_started_drivers()
    assert factory.is_driver_still_open(webdriver) is False
Esempio n. 3
0
def test_is_driver_still_opened():
    webdriver = get_test_driver()
    assert factory.is_driver_still_open(webdriver)
    webdriver.quit()
    assert factory.is_driver_still_open(webdriver) is False