Hi
I like your Test studio alot, but Ive run into a problem in an advanced scenario.
I have a popup window where the user can upload images, but when the submit button is clicked I use jquery to refresh the parent window and close the popup window. During automated testing, however, this does not work.
I have attached the error message IE gives me.
I know this is kind of a special scenario, but do you know of any workaround?
jquery code: communication-between-browser-windows-with-jquery
I like your Test studio alot, but Ive run into a problem in an advanced scenario.
I have a popup window where the user can upload images, but when the submit button is clicked I use jquery to refresh the parent window and close the popup window. During automated testing, however, this does not work.
I have attached the error message IE gives me.
I know this is kind of a special scenario, but do you know of any workaround?
jquery code: communication-between-browser-windows-with-jquery
| // triggers an event in the parent window. Returns true if the |
| // message was succesfully sent, otherwise false. |
| $.triggerParentEvent = function(event, msg) { |
| $.triggerWindowEvent(window.opener, event, msg); |
| }; |
| // triggers an event in a window that was opened by the current window |
| $.triggerWindowEvent = function(otherWindow, event, msg) { |
| if (typeof otherWindow == "object") { |
| form = otherWindow.document.forms["windowComm"]; |
| if (form) { |
| form.windowCommEvent.value = event; |
| form.windowCommData.value = msg; |
| form.windowCommButton.click(); |
| return true; |
| } |
| } |
| return false; |
| } |