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

A

Anukul Singhal

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
 
C

Charley Baker

Anukul said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top