Skip to content

Commit 3d05940

Browse files
committed
[py] Removing test as it also fails in Chrome
But passes for both Edge and Chrome in C# and Java
1 parent 9ab7799 commit 3d05940

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -415,31 +415,6 @@ def test_java_script_should_execute_in_the_context_of_the_current_frame(driver,
415415
assert driver.execute_script("return window != window.top")
416416

417417

418-
@pytest.mark.xfail_chrome(reason="Fails on Travis")
419-
@pytest.mark.xfail_safari
420-
def test_should_not_switch_magically_to_the_top_window(driver, pages):
421-
pages.load("frame_switching_tests/bug4876.html")
422-
driver.switch_to.frame(0)
423-
WebDriverWait(driver, 3).until(EC.presence_of_element_located((By.ID, "inputText")))
424-
425-
for i in range(20):
426-
try:
427-
input = WebDriverWait(driver, 3).until(EC.presence_of_element_located((By.ID, "inputText")))
428-
submit = WebDriverWait(driver, 3).until(EC.presence_of_element_located((By.ID, "submitButton")))
429-
input.clear()
430-
import random
431-
432-
input.send_keys("rand%s" % int(random.random()))
433-
submit.click()
434-
finally:
435-
url = driver.execute_script("return window.location.href")
436-
# IE6 and Chrome add "?"-symbol to the end of the URL
437-
if url.endswith("?"):
438-
url = url[: len(url) - 1]
439-
440-
assert pages.url("frame_switching_tests/bug4876_iframe.html") == url
441-
442-
443418
def test_get_should_switch_to_default_context(driver, pages):
444419
pages.load("iframes.html")
445420
driver.find_element(By.ID, "iframe1")

0 commit comments

Comments
 (0)