Edge WebDriver is hang when executing java-script on closed window

Confirmed Issue #8146742 • Assigned to Stanley H.

Details

Author
Truong P.
Created
Jul 12, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

Please download the AUT sample at attached file and then running the example code as following

public static void main(String args[]) throws MalformedURLException, InterruptedException {                             
        System.setProperty("webdriver.edge.driver", "MicrosoftWebDriver.exe");      
        WebDriver driver = new EdgeDriver();
        driver.get("Standard.html");
        driver.findElement(By.id("btnShow")).click();    
        Thread.sleep(3000);
        driver.switchTo().window(driver.getWindowHandles().toArray()[1].toString());    
        driver.findElement(By.name("btnClose")).click();
        System.out.println("Js is executing");
        ((JavascriptExecutor)driver).executeScript("alert('welcome')");     
}

After executing the java-script on closed window, the Edge WebDriver is hang. However, there is an exception “Window not found. The browser window may have been closed.” displays on Firefox.

In this case, the expected result is same Firefox

Windows Insider 14372
Edge WebDriver 14366

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Ibrahim O.”

    Changed Title from “Edge WebDriver is hang when executing java-script on closed window” to “Edge WebDriver is hang when executing java-script on closed window”

    Changed Assigned To to “Mara P.”

    Changed Title from “Edge WebDriver is hang when executing java-script on closed window” to “Edge WebDriver is hang when executing java-script on closed window”

    Changed Assigned To from “Mara P.” to “Ben B.”

    Changed Status to “Confirmed”

    Changed Steps to Reproduce

    Changed Assigned To from “Ben B.” to “Stanley H.”

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

Sign in