def webdriver(): driver = webdriver_control.create() yield driver terminate_webdriver(driver)
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
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
def webdriver(): driver = webdriver_control.create() yield driver terminate_webdriver(driver)