Watir::IE.each do |b|
  puts b.title
end

On Wed, May 19, 2010 at 19:45, George <[email protected]> wrote:

> I've been searching for an answer, but no luck.
>
> When I click on a link, a new browser window is supposed to open. My
> job is to click the link again and make sure there that a duplicate
> window doesn't display. Using Watir::IE.process_count doesn't help due
> to the fact that IE8 displays more than one instance of iexplore.exe
> for one browser window.
>
> Isn't there an easy way to iterate over all open browsers and get the
> title or URL? Something like:
>
> browsers.each do |b|
>  puts b.title
> end
>
> --
> 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