ie = Watir::IE.attach(:title, xxx) can locate an existing IE window.
ie.close can close the ie window

Wesley.
For life, the easier, the better.


On Thu, May 13, 2010 at 4:26 AM, Brad <[email protected]> wrote:

> Hello,
>
> I want to click on all the links on a page, got it, I have this
> working no problem. Some links have their target set to _blank which
> in turns involves a new tab (a browser tab) inside the same browser
> window. So if I only had one tab visible and active when the link is
> clicked now I have two tabs.
>
> So I have two questions:
> How do I go back to the original tab?
> How can I close the newly opened tab?
>
> Please let me know if you need more information.
>
> Thanks.
>
> Brad
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: [email protected]
> To unsubscribe: 
> [email protected]<watir-general%[email protected]>
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to