Python, Web Application Testing, Programming, Technology, Pytest.
selenium import webdriver def test_login(): driver = webdriver.Chrome() driver.get("http://example.com/login") try: username = driver.find_element_by_name("username") password = driver.find_element_by_name("password") username.send_keys("test_user") password.send_keys("secure_password")