mozilla/browserid — pull request #2452 by klrmn (2012-09-08 00:42:28+00:00)
Title: attempt to fix window switch / close errors

this has been tested against WinXP IE8, but will have to be merged to find out whether it reduces the number of failures on ci

3 occasions of 2 sporadic failures in ci logs as of 5pm friday

seen at
https://ci.mozilla.org/view/Persona/job/identity.browserid.dev.windows.x
p.ie.8/1315/testReport/junit/123done.tests.test_new_user/TestNewAccount/
test_can_create_new_user_account

self =

def close_window(self):
> self.selenium.close()

browserid/pages/sign_in.py:53:

E WebDriverException: Message: u'ERROR Internal Server Error'

------------

seen at
https://ci.mozilla.org/view/Persona/job/identity.browserid.dev.windows.7
.ie.9/1324/testReport/junit/123done.tests.test_sign_in/TestSignIn/test_t
hat_user_can_sign_in/

https://ci.mozilla.org/view/Persona/job/identity.browserid.dev.windows.7
.ie.9/1313/testReport/junit/123done.tests.test_change_password/TestChang
ePassword/test_can_change_user_password/

self =
selenium =
timeout = 90, expect = 'new'

def __init__(self, selenium, timeout, expect='new'):
Base.__init__(self, selenium, timeout)

> selenium.switch_to_window('__persona_dialog')

browserid/pages/sign_in.py:38:

E NoSuchWindowException: Message: u"No window found