Skip to content

Commit 0b803f2

Browse files
committed
[py] Fix testShouldBeAbleToSwitchToTheTopIfTheFrameIsDeletedFromUnderUs
1 parent 8411912 commit 0b803f2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

py/test/selenium/webdriver/common/frame_switching_tests.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,16 @@ def testGetCurrentUrlReturnsTopLevelBrowsingContextUrlForIframes(self, driver, p
279279
driver.switch_to.frame(driver.find_element_by_id("iframe1"))
280280
assert "iframes.html" in driver.current_url
281281

282-
@pytest.mark.ignore_marionette
283282
@pytest.mark.ignore_phantomjs
284-
@pytest.mark.ignore_firefox
285-
@pytest.mark.ignore_chrome
286283
def testShouldBeAbleToSwitchToTheTopIfTheFrameIsDeletedFromUnderUs(self, driver, pages):
287284
pages.load("frame_switching_tests/deletingFrame.html")
288285
driver.switch_to.frame(driver.find_element_by_id("iframe1"))
289286

290287
killIframe = driver.find_element(By.ID, "killIframe")
291288
killIframe.click()
292289
driver.switch_to.default_content()
293-
WebDriverWait(driver, 3).until(EC.presence_of_element_located((By.ID, "iframe1")))
290+
WebDriverWait(driver, 3).until_not(
291+
EC.presence_of_element_located((By.ID, "iframe1")))
294292

295293
addIFrame = driver.find_element(By.ID, "addBackFrame")
296294
addIFrame.click()

0 commit comments

Comments
 (0)