Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests are failing on IE 11 with NoSuchWindowException exception #7

Open
Gaurang033 opened this issue Feb 21, 2017 · 1 comment
Open

Comments

@Gaurang033
Copy link

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.

@vedharish
Copy link
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 ([email protected]) 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants