Пример #1
0
def webdriver():
    driver = webdriver_control.create()
    yield driver
    terminate_webdriver(driver)
Пример #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
Пример #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
Пример #4
0
def webdriver():
    driver = webdriver_control.create()
    yield driver
    terminate_webdriver(driver)