Skip to content

Commit

Permalink
[py] xfail chrome tests due to bugs in chromedriver
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Jan 11, 2018
1 parent 7657acb commit 05125d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py/test/selenium/webdriver/common/frame_switching_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def testShouldBeAbleToSwitchToParentFromAnIframe(driver, pages):
# ----------------------------------------------------------------------------------------------


@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldContinueToReferToTheSameFrameOnceItHasBeenSelected(driver, pages):
pages.load("frameset.html")
driver.switch_to.frame(2)
Expand Down Expand Up @@ -245,6 +246,7 @@ def testShouldAllowAUserToSwitchFromAnIframeBackToTheMainContentOfThePage(driver
driver.find_element(By.ID, "iframe_page_heading")


@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldAllowTheUserToSwitchToAnIFrameAndRemainFocusedOnIt(driver, pages):
pages.load("iframes.html")
driver.switch_to.frame(0)
Expand All @@ -256,6 +258,7 @@ def getTextOfGreetingElement(driver):
return WebDriverWait(driver, 3).until(EC.presence_of_element_located((By.ID, "greeting"))).text


@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldBeAbleToClickInAFrame(driver, pages):
pages.load("frameset.html")
driver.switch_to.frame("third")
Expand All @@ -278,6 +281,7 @@ def testShouldBeAbleToClickInAFrameThatRewritesTopWindowLocation(driver, pages):
WebDriverWait(driver, 3).until(EC.title_is("Target page for issue 5237"))


@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldBeAbleToClickInASubFrame(driver, pages):
pages.load("frameset.html")
driver.switch_to.frame(driver.find_element_by_id("sixth"))
Expand Down Expand Up @@ -394,6 +398,7 @@ def testJavaScriptShouldExecuteInTheContextOfTheCurrentFrame(driver, pages):
assert driver.execute_script("return window != window.top")


@pytest.mark.xfail_chrome(reason='https://bugs.chromium.org/p/chromedriver/issues/detail?id=2198')
def testShouldNotSwitchMagicallyToTheTopWindow(driver, pages):
pages.load("frame_switching_tests/bug4876.html")
driver.switch_to.frame(0)
Expand Down
1 change: 1 addition & 0 deletions py/test/selenium/webdriver/common/page_loading_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def testShouldBeAbleToNavigateForwardsInTheBrowserHistory(driver, pages):

@pytest.mark.xfail_ie
@pytest.mark.xfail_marionette(run=False)
@pytest.mark.xfail_chrome(run=False)
def testShouldNotHangifDocumentOpenCallIsNeverFollowedByDocumentCloseCall(driver, pages):
pages.load("document_write_in_onload.html")
driver.find_element(By.XPATH, "//body")
Expand Down

0 comments on commit 05125d7

Please sign in to comment.