small inconvenience in BrowserState..selectWindow(...)

Bug #930185 reported by Marcus Döring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TestPlan
New
Undecided
Unassigned

Bug Description

As mentioned in the summary, this is more of an inconvenience than a bug.

It all starts at line 224 (browser.selectWindow( findName );) which throws an Exception when a window with the given name does not (yet) exist.

In the process of retrying, a new window is forced open.
This results in an unwanted window to be opened when the window you wanted to open is opened with a small delay.

The fix for this would be either an overloaded version of this method which accepts parameter as i.e. "numberOfTries" or at least a "delayInMs".
Where it just tries to find the window with the given name again, instead of forcing a new one to be opened immediately.

I know that in the SeleniumDoc the usage of "openWindow" using an empty String as the url-parameter is intended to force Selenium to recognize a window. This however seems to not (always) work. (instead a new window with a blank url-field is opened).

I would be happy to hear your thoughts about this.

Regards
Marcus Döring

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.