Skip to content

Commit

Permalink
[py] Fixing tests to stop using removed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jan 12, 2019
1 parent e74164e commit dca7a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/test/selenium/webdriver/common/position_and_size_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def testShouldScrollPageAndGetCoordinatesOfAnElementThatIsOutOfViewPort(driver,
@pytest.mark.xfail_remote
def testShouldGetCoordinatesOfAnElementInAFrame(driver, pages):
pages.load("coordinates_tests/element_in_frame.html")
driver.switch_to_frame(driver.find_element(By.NAME, "ifr"))
driver.switch_to.frame(driver.find_element(By.NAME, "ifr"))
element = driver.find_element(By.ID, "box")
_check_location(element.location_once_scrolled_into_view, x=25, y=25)
_check_location(element.location, x=10, y=10)
Expand All @@ -70,8 +70,8 @@ def testShouldGetCoordinatesOfAnElementInAFrame(driver, pages):
@pytest.mark.xfail_remote
def testShouldGetCoordinatesOfAnElementInANestedFrame(driver, pages):
pages.load("coordinates_tests/element_in_nested_frame.html")
driver.switch_to_frame(driver.find_element(By.NAME, "ifr"))
driver.switch_to_frame(driver.find_element(By.NAME, "ifr"))
driver.switch_to.frame(driver.find_element(By.NAME, "ifr"))
driver.switch_to.frame(driver.find_element(By.NAME, "ifr"))
element = driver.find_element(By.ID, "box")
_check_location(element.location_once_scrolled_into_view, x=40, y=40)
_check_location(element.location, x=10, y=10)
Expand Down

0 comments on commit dca7a5d

Please sign in to comment.