Re[2]: [Webtest] Is it possible to close the current window from WebTest?
Maxim Annyuk
webtest@lists.canoo.com
Fri, 21 Oct 2005 17:13:55 +0400
Hello Marc,
MG> Can you tell a bit more why you need this? If you want to test some
MG> onunload events, I fear that htmlunit doesn't execute them yet.
There is no any JS event handling. I just have to open a one popup then the
second popup from the first one (all by clickLink). Then close both popups
and get back to the "main":
Step 1: "Main" (clickLink) -->
Step 2: popup1 (some testing, clickLink) -->
Step 3: popup2 (some testing)
Step 4: (close popup2)
Step 5: (close popup1)
Step 6: Should be back in the "Main" to continue the testing.
On step 4 I may use <previousResponse> to get back to popup1.
But on step 5 I don't know what to do except adding 'close' button.
<previousResponse> will return me to <popup2>, not to the "Main".
It would be nice to have an ability to call JS functions and to fire JS
events (from the WebTest script).
--
Maxim