-
Notifications
You must be signed in to change notification settings - Fork 5
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
The Session::reset
throws an exception when main window has name
#26
Comments
For internal usages, it would make sense to work directly with handles. |
Updated PR code to account for this. |
Agreed, not sure why it wasn't like that already. We need to make sure that in old selenium we can also get some sort of window handle. |
@uuf6429 , Tested on Selenium 2 and everything works. |
When the main window has a name and a couple of other windows are open, then the
Session::reset
call throws aNoSuchWindow
exception, because it tries to determine the main window handle by its name after a popup window was just deleted while Selenium is in context of that deleted window (Web View).Maybe for the internal window manipulations, the driver should use only window handles.
Related issue: #25
P.S.
I stumbled upon this error after fixing the #25 problem locally.
The text was updated successfully, but these errors were encountered: