WindowSwitchingTest.testShouldSwitchFocusToANewWindowWhenItIsOpenedAndNotStopFutureOperations()
has the code like this:
driver.get(pages.xhtmlTestPage);
String current = driver.getWindowHandle();
driver.findElement(By.linkText("Open new window")).click();
assertThat(driver.getTitle(), equalTo("XHTML Test Page"));
driver.switchTo().window("result");
The particular line is failing because the window opened has title : "We Arrive Here"
Here is the screen shot of the window opened after clicking on "Open new window" link.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
Which window manager are you using? With all this Ubuntu customization, I can't tell if it's KDE or Gnome underneath.
I'd also suggest running the tests with Xvfb / Xvnc and making sure that you have a vanilla Firefox (as opposed to Iceweasel that ships with debian, I'm not sure what Ubuntu ships). If you still get this error, let me know.
You said the test is passing when you run the tests individually - how exactly are you executing it?
Which Ubuntu version are you using? On what architecture? (output of uname -a).
Note to self: don't post while jet-lagged.
Yes, the driver is left in an unusable state.
The second paragraph was supposed to start with "changed to have..". The change itself shows how the global state was removed-the changes to the test cases themselves should make it clear.