Try something like this:
@browser.window(:url => /popup_url/).use do
@browser.......
@browser.window(:url, /popup_url/).close
end
Hope this helps
On Jul 14, 8:09 am, Mahi <[email protected]> wrote:
> Hi,
>
> How can i create a script to execute on the browser that was opened?
> And also How do i create a script to close all the existing browser
> and open a new browser? Browser: IE/Firefox/safari
>
> Please help me in this.
>
> --
> Regards,
> Mahi
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]