If you write your own extension, you can get the window object in Selenium by going to
Selenium.prototype.doExtensionStuff(){ var doc = this.browserbot.getUserWindow().document; //This returns the document that Selenium is using }
This is considered the best way to do it and will work in any browser, since Selenium takes care of different mucks of the browser
source share