Example #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()
Example #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