Back navigation hangs when it happens in iframe

Confirmed Issue #6181140 • Assigned to Mustapha J.

Details

Created
Jan 14, 2016
Privacy
This issue is public.
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

see attached files too

package com.tests;
import java.io.File;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.edge.EdgeDriver;

public class TestNavigation {
 public static void main(String… args) {
  System.setProperty("webdriver.edge.driver", “C:\Users\TDPUser\Documents\MicrosoftWebDriver.exe”);
  EdgeDriver edge = new EdgeDriver();
  try {
   File htmlIFrames = new File(“./iframes.html”);
   String htmlIFramesURI = htmlIFrames.toURI().toString().replace("file:/", "file:///
");
   
   // open the main html page that is loading 2 iframes
   edge.get(htmlIFramesURI);
   
   // switch to 1st frame
   waitSecs(3); // use a simple sleep to avoid other side effects
   System.out.println(“Switch to frame 0”);
   edge.switchTo().frame(0); // 1st frame
   
   // click some links
   WebElement elem = edge.findElement(By.xpath("//A[@href=’/TestSite/Index.html’]"));
   System.out.println(“Click to Test Sites”);
   elem.click();
   waitSecs(3);  
   elem = edge.findElement(By.xpath("//A[@href=’/gmopost’]"));
   System.out.println(“Click to GMO Post”);
   elem.click();
   // ISSUE: navigate back
   System.out.println(“Navigate back…”);
   edge.navigate().back(); // encountered problem: test hangs and needs to be killed
   System.out.println(“Navigate back done.”);
  } catch (Exception e) {
   e.printStackTrace();
  }
  edge.quit();
 }
 private static void waitSecs(int secs) {
  try {
   Thread.sleep(1000 * secs);
  } catch (InterruptedException e) {
   e.printStackTrace();
  }
 }
}

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To from “Mara P.” to “Reinhold D.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “In code review”

      Changed Title from “Back navigation hangs when it happens in iframe” to “Back navigation hangs when it happens in iframe”

      Changed Title from “Back navigation hangs when it happens in iframe” to “Back navigation hangs when it happens in iframe”

      Changed Status from “In code review” to “Confirmed”

      Changed Assigned To from “Reinhold D.” to “Ben B.”

      Changed Assigned To from “Ben B.” to “Navin A.”

      Changed Assigned To from “Navin A.” to “Mustapha J.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in