Validating web apps which generates 2 browser instances.

0 views
Skip to first unread message

tester

unread,
Nov 30, 2009, 5:08:11 PM11/30/09
to iTest2
I have a web app which, upon selection of a link", brings up a
separate browser session. Are there any sugestions or samples on how
best to manage those particular scenarios?

Many thanks... um... "the tester"

Zhimin

unread,
Nov 30, 2009, 11:40:42 PM11/30/09
to iTest2
You use attach_browser() to test content on another browser instance,
see the example below:

click_link("Show popup window")
popup_win = attach_browser(:title, "For Testing iTest2 Popups")
# using Watir syntax
popup_win.link(:text, "Ok").click
popup_win.close
# continue on the parent page
click_link("iTest2")

In RWebSpec, the operations not on original browser window must use
Watir Syntax.

Check out the popup_window_spec.rb under samples project.

Cheers,
Zhimin

tester

unread,
Dec 1, 2009, 4:39:08 PM12/1/09
to iTest2

Sweet. I've definitely been spoiled by Loadrunner which handles it.
But the thought of paying higher cost to support Web 2.0... well I
don't wanna.

Many thanks....
> > Many thanks... um... "the tester"- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages