robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

"Close Browser" keyword using Selenium RC2 in Win 7 32 bit template IE 9.0, open up a new window #248

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by urmimaju... on 6 Aug 2012

I am using Robot, specification: robot framework selenium library 2.8.1 Python 2.7 While running a single set of tests I am specifying close browser as follows, it closes the browser, but opens up an empty instance of a new browser. Here is my test case: Please note that I have suite level init file where I am specifying starting and stopping selenium Server as suite setup and tear down Test Suite level init, where I am specifying the suite related Setup and Teardown. and in testcase level here is my init content:

Suite initialization file contains Suite and test

level Setup and Teardown

* Settings * Resource common_resource.txt Resource admin_roles_imports.txt Resource admin_role_keywords.txt

Suite Setup Run Keywords Open MC ... Log on as User Admin

Suite Teardown Run Keywords Delete Created User ... Logout MC ... Close Browser

spooning commented 9 years ago

Originally submitted to Google Code by @yanne on 27 Aug 2012

Actually, the other browser may be the selenium controller window, it just cannot be seen when the actual browser is open. The inability to close the window is unfortunately a limitation in Selenium itself with Internet Explorer, and there's nothing we can do to fix it.

If I have understood correctly, this should not be a problem with the selenium2library: https://github.com/rtomac/robotframework-selenium2library