Skip to content

Commit a2dc04a

Browse files
authored
[py] Fix another broken test (#15866)
1 parent dc5e0fe commit a2dc04a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/test/selenium/webdriver/common/driver_element_finding_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def test_should_not_find_element_by_class_when_the_name_queried_is_shorter_than_
283283
@pytest.mark.xfail_edge(reason="https://bugs.chromium.org/p/chromedriver/issues/detail?id=4743")
284284
def test_finding_asingle_element_by_empty_class_name_should_throw(driver, pages):
285285
pages.load("xhtmlTest.html")
286-
msg = r"\/errors#invalid-selector-exception"
286+
msg = r"\/errors#invalidselectorexception"
287287
with pytest.raises(InvalidSelectorException, match=msg):
288288
driver.find_element(By.CLASS_NAME, "")
289289

py/test/selenium/webdriver/common/stale_reference_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_old_page(driver, pages):
2525
pages.load("simpleTest.html")
2626
elem = driver.find_element(by=By.ID, value="links")
2727
pages.load("xhtmlTest.html")
28-
msg = r"\/errors#stale-element-reference-exception"
28+
msg = r"\/errors#staleelementreferenceexception"
2929
with pytest.raises(StaleElementReferenceException, match=msg):
3030
elem.click()
3131

0 commit comments

Comments
 (0)