Esempio n. 1
0
def webdriver():
    driver = webdriver_control.create()
    yield driver
    terminate_webdriver(driver)
Esempio n. 2
0
def test_terminate_webdriver():
    d = biw.create_phantomjs_webdriver()
    assert d.service.process is not None
    biw.terminate_webdriver(d)
    assert d.service.process is None
Esempio n. 3
0
def test_terminate_webdriver() -> None:
    d = biw.create_phantomjs_webdriver()
    assert d.service.process is not None
    biw.terminate_webdriver(d)
    assert d.service.process is None
Esempio n. 4
0
def webdriver():
    driver = webdriver_control.create()
    yield driver
    terminate_webdriver(driver)