I am writing user extensions to selenium. I have the document object. How can I get the window object of the window that contains my document?
PageBot.prototype.locateElementByMyLocator= function(text, inDocument) {
// I want the window here
}
In IE it’s document.parentWindow; in Mozilla it’s document.defaultView.
Thus you could do something like