Skip to content

Commit

Permalink
remove test case calling RelativeLocator#near wrong way
Browse files Browse the repository at this point in the history
  • Loading branch information
pinterior committed Nov 27, 2023
1 parent 435edc9 commit 7f9cf88
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions py/test/selenium/webdriver/support/relative_by_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,6 @@ def test_no_such_element_is_raised_rather_than_index_error_by_locator(driver, pa
assert "Cannot locate relative element with: {'id': 'nonexistentid'}" in exc.value.msg


# this test will fail with InvalidArgumentException
def test_near_locator_should_accept_single_int(driver, pages):
pages.load("relative_locators.html")

driver.find_element(locate_with(By.ID, "rect2").near(123))


def test_near_locator_should_find_near_elements(driver, pages):
pages.load("relative_locators.html")
rect1 = driver.find_element(By.ID, "rect1")
Expand Down

0 comments on commit 7f9cf88

Please sign in to comment.