Skip to content

Commit 18c5286

Browse files
committed
Updates for failed tests
Had the
1 parent 2324bf1 commit 18c5286

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/python/tests/elements/test_locators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_find_by_link_text():
3838
driver = webdriver.Chrome()
3939
driver.get("https://www.selenium.dev/")
4040

41-
driver.find_element(By.LINK_TEXT, "Documentation")
41+
driver.find_element(By.LINK_TEXT, "MORE NEWS")
4242

4343
driver.quit()
4444

examples/python/tests/interactions/test_alerts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def test_alert_popup():
1010
driver = webdriver.Chrome()
1111
driver.get(url)
1212
element = driver.find_element(By.LINK_TEXT, "See an example alert")
13-
element.click()
13+
driver.execute_script("arguments[0].click();", element)
1414

1515
wait = WebDriverWait(driver, timeout=2)
1616
alert = wait.until(lambda d : d.switch_to.alert)

0 commit comments

Comments
 (0)