The need has come for Selenium to use cross-domain AJAX and, surprisingly, there is nothing out there that offers a simple interface similar to XHR that provides cross-domain AJAX support. That is unfortunate, because we can't simply plop in dojo or DWR inside of Selenium as it could easily clash with different versions of those frameworks in the application under test.
So my question is: how hard would it be to modify DWR and/or add a feature that made namespacing the objects in engine.js and SomeInterface.js in to a "Selenium." namespace, thus ensuring Selenium's engine.js did not collide with the AUT's? If this is pretty simple to do, I'd like to seriously discuss the possibility of using DWR as the core engine for automating Selenium's communication back and forth as it drives a test. Let me know.
This idea originally came from Patrick Lightbody:
The need has come for Selenium to use cross-domain AJAX and, surprisingly, there is nothing out there that offers a simple interface similar to XHR that provides cross-domain AJAX support. That is unfortunate, because we can't simply plop in dojo or DWR inside of Selenium as it could easily clash with different versions of those frameworks in the application under test.
So my question is: how hard would it be to modify DWR and/or add a feature that made namespacing the objects in engine.js and SomeInterface.js in to a "Selenium." namespace, thus ensuring Selenium's engine.js did not collide with the AUT's? If this is pretty simple to do, I'd like to seriously discuss the possibility of using DWR as the core engine for automating Selenium's communication back and forth as it drives a test. Let me know.
Naively, this should be as easy as defining a new init-param for the top level name, then doing a search and replace for "dwr." in the source for the parameterized name.
I'm sure there are some wrinkles to work out though.
Joe Walker added a comment - 12/Apr/07 10:13 AM Naively, this should be as easy as defining a new init-param for the top level name, then doing a search and replace for "dwr." in the source for the parameterized name.
I'm sure there are some wrinkles to work out though.
Naively, this should be as easy as defining a new init-param for the top level name, then doing a search and replace for "dwr." in the source for the parameterized name.
I'm sure there are some wrinkles to work out though.