Python, Web Application Testing, Programming, Technology, Pytest.
web browsers. @pytest.fixture def browser(): driver = webdriver.Chrome() yield driver driver.quit() def test_login(browser): browser.get("http://example.com/login") username = browser.find_element_by_name("username") password = browser.find_element_by_name("password")