On Mon, Sep 6, 2010 at 6:55 AM, xulivan <xuli...@yahoo.com> wrote:
> @ie = Watir::IE.attach(:title,/.*MatchString.*/)

If I understood what you want, this should work (not tested):

how = :title
what = /.*MatchString.*/
@ie = Watir::IE.attach(how, what)

or

how = :url
what = "http://stackoverflow.com/";
@ie = Watir::IE.attach(how, what)

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
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: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

Reply via email to