Local Website Environment: Apache, php, and dojo toolkit. Feel free to assume jquery instead of dojo if you’re more familiar with it.
Remote Website Environment: dojo toolkit (server software irrelevant, I have no control over it).
I have a web page (local website) that I have complete control over.
On this page I have an iframe containing a web page I want to automate testing on. I want to automate the manipulation of elements by clicking buttons/links and filling form fields using dojo.
How can I accomplish this?
Thanks in advance!
This may be on the right track for avoiding cross-domain restrictions: http://www.ghidinelli.com/2008/12/27/how-to-bypass-cross-domain-restrictions-when-developing-ajax-applications
- open httpd.conf of your Apache, and append these:
enable proxy modules by:
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so
write the proxy rule:
ProxyPass /localpath/ http://remote/path/