Update example.py

This commit is contained in:
Leon 2022-12-29 11:47:48 +01:00 committed by GitHub
parent dd0c7ca75e
commit a26e375c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def main(args=None):
driver.get("https://www.google.com")
# accept the terms
driver.find_elements(By.XPATH, '//*[contains(text(), "Accept all")]')[-1].click()
driver.find_elements(By.XPATH, '//*[contains(text(), "Reject all")]')[-1].click() # ;)
inp_search = driver.find_element(By.XPATH, '//input[@title="Search"]')