|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
implementing support for showModalDialogHi,
My organization is in dire need to have the functionality of showModalDialog. We would like to use Selenium, however the web application we are developing heavily written to use showModalDialog. I have taken it upon myself to try to add this feature to Selenium. Are there any developers here that may have any ideas of what the ideal situation to implement it would be? I have considered using ActiveX and similar approaches as Watir uses. Any questions, or comments would be greatly welcomed. Thanks --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3954&messageID=10878#10878 --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
|
|
Re: implementing support for showModalDialogMatthew Purland wrote:
> Hi, > > My organization is in dire need to have the functionality of showModalDialog. We would like to use Selenium, however the web application we are developing heavily written to use showModalDialog. I have taken it upon myself to try to add this feature to Selenium. > > Are there any developers here that may have any ideas of what the ideal > situation to implement it would be? I have considered using ActiveX and > similar approaches as Watir uses. Let me make a couple of observations here. 1) Selenium Core works by having two Windows open, one of which (the TestRunner window) invokes JS functions on the other (the Application Under Test). showModalDialog makes that strategy unworkable, because when a modal dialog has appeared, the TestRunner window is paused, unable to execute, until the modal dialog has closed. 2) Recent versions of Selenium RC provide a new mechanism for running Selenium tests called "proxy injection" mode. The idea is that we provide an HTTP proxy that automatically modifies all incoming HTML before it arrives in your browser. This allows us to "inject" Selenium code into all HTML windows, including modal dialogs. Since the "brains" of Selenium RC are in the Selenium Server, you should be able to use Selenium RC (with proxy injection) to test modal dialogs. Note that Selenium RC does not normally run in proxy injection mode; you have to turn it on from the command line separately. 3) If you search around in the Selenium Core code you may find some leftover stubs of showModalDialog support (which don't work). The basic idea here was to do something similar to what we already do with pop-up windows. Specifically, in order to keep track of (ordinary) pop-up windows created by the AUT, we intercept all calls to window.open, replacing that function with our own function that keeps a record of opened windows (and then opens the window, as you requested). In the case of modal dialogs, we did something kinda weird (and which didn't really work, if I understand it correctly) where we replaced calls to .showModalDialog with our own function that opened another "mini instance" of Selenium within a modal dialog. You'd see another miniature version of Selenium (with another embedded iframe) in your floating modal dialog; we'd then begin executing a single simple test inside that modal dialog, typically enough to click "OK" or whatever to make the modal dialog go away. It looked strange and felt like a hack to me. With that said, I guess it'd be possible to resuscitate this strategy and make it work again, if it ever worked to begin with, and if that's good enough for you. :-) -Dan --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
|
|
Re: implementing support for showModalDialogDid you ever get this working? I really need modal dialog testing too.
Dave --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3954&messageID=16213#16213 --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
|
|
Re: implementing support for showModalDialogMatt Purland reports he has written patches to make showModalDialog work under PI mode. See SEL-208, SEL-409. I don't believe his work has yet been checked into the code, but it likely will be in the near future.
--------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3954&messageID=16214#16214 --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
|
|
Re: implementing support for showModalDialogYes, please see SEL-409 for the patch that fixes support for showModalDialog under PI mode. This patch has not been checked in yet as far as I know.
--------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3954&messageID=16215#16215 --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
|
|
Re: implementing support for showModalDialogYou may also want to see the newly submitted patch for SEL-407 that will fix problems with not being able to select modal windows that I have been seeing.
--------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3954&messageID=16216#16216 --------------------------------------------------------------------- To unsubscribe, e-mail: selenium-dev-unsubscribe@... For additional commands, e-mail: selenium-dev-help@... |
|
|
Re: implementing support for showModalDialogHi,
I have the same problem now. I can't get windows which are opened by 'showModalDialog' method. Would please share the solution if you you've solved the problem? Thanks.. |
|
|
Re: implementing support for showModalDialogModal window hacked.
http://seleniumdeal.blogspot.com/2009/01/handling-modal-window-with-selenium.html. This link will help you to get through other selenium issues.
|
| Free embeddable forum powered by Nabble | Forum Help |