Timeline for switching windows with Selenium2 and c# where popup window has same title as originating window
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 19, 2011 at 9:54 | comment | added | Lyndon Vrooman | Haven't had a chnace to touch this project since asking this, however, I've used this technique in a few other circumstances since and it seems as though it will work. | |
Jul 19, 2011 at 9:53 | vote | accept | Lyndon Vrooman | ||
Jun 30, 2011 at 18:21 | comment | added | Jason Ward | Back before Selenium 2 could deal with alerts we used to have to call self.driver.execute_script('window.onbeforeunload = function(){};') (sorry its python bindings) in order to prevent the alert from showing up when we were trying to change pages without saving. Its a simple example, but I feel you will be able to do something similar | |
Jun 30, 2011 at 14:57 | comment | added | Lyndon Vrooman | Cool. Thank you! I'll take a look into it. | |
Jun 30, 2011 at 14:52 | comment | added | Jason Ward | Sure, for a basic overview there is some at Selenium FAQ and for a more in-depth explanation you can use JavascriptExectutor API. | |
Jun 30, 2011 at 9:39 | comment | added | Lyndon Vrooman | The handle is normally a hash. The handles are different in this case (don't have my tests with me at the moment, but, ie: internet_explorer_browser_6 with the pop up being internet_explorer_browser_8). I'm not familiar with injecting javascript to change an element through selenium. Would you happen to have any references where I could begin to start looking? | |
Jun 29, 2011 at 18:46 | history | answered | Jason Ward | CC BY-SA 3.0 |