Watir: How to return a Watir::IE object for an existing IE?

Hi,

I just wanted to know what code would be used to return a Watir::IE
object for an existing IE window. Can anyone help in this regard?

Thanks,
Anukul

Anukul S. wrote:

Hi,

I just wanted to know what code would be used to return a Watir::IE
object for an existing IE window. Can anyone help in this regard?

Thanks,
Anukul

require ‘watir’

browser = Watir::IE.attach(:title, //) # you could also specify a title
or partial title by regex

There’s more information about Watir on our site:
http://wtr.rubyforge.org/documentation.html

as well as Watir google group that you might want to post to for
specific questions.

http://wtr.rubyforge.org/community.html

-Charley

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs