Skip to content

Tests are failing on IE 11 with NoSuchWindowException exception #7

Open

Description

@Gaurang033

Hi Guys,

My tests are failing on IE 11 with following exception, it works fine on IE 10 and IE 9.

Exception
org.openqa.selenium.NoSuchWindowException: Unable to find element on closed window

Code
wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("label[for='form:quest:0:quest:0:questionId:0']")));

Possible Solution
http://stackoverflow.com/questions/24746777/selenium-nosuchwindowexception-in-ie-11

however not sure exactly how to achieve that in browserstack.

Activity

  1. vedharish commented on Feb 22, 2017

    @vedharish
    Contributor

    Hey @Gaurang033 ,
    Can you provide a small reproducible test case for the behaviour you are experiencing?
    I tried but could not reproduce this. Is wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("label[for='form:quest:0:quest:0:questionId:0']"))); the only line in your test?

    Regarding the stackoverflow link, this is not related to testng in particular. I think BrowserStack has specific capabilities you can set for the protected mode / introduce flakiness / bfcache. It would be best if you shoot them (support@browserstack.com) a mail and check if that resolves your issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions