just_add_watir | Advanced recipes for Watir
21Aug/08Off

Q. How do I attach to a current IE session?

A. Use the .attach method...
Example watir:

@b=Watir::IE.attach(:title,//)

I have used regex here for the window title, you can be more specific if you like.

Tagged as: , 1 Comment