From: "Jesús Gabriel y Galán" Date: 2011-05-04T16:03:01+09:00 Subject: Re: how to get variable text from browser On Tue, May 3, 2011 at 7:58 PM, Joe Pizzanley wrote: >> m = $ie.text.match /Files\s+\(\d+\)/ > > That's what I needed - the magic of match. > > Thanks Jesús! I'm glad you got your answer. I think it would be good anyway to read a little bit about XPath and how you can use it with Watir, because you might find a situation where matching against all the page text is not suitable, and you need to find specific elements in the HTML: http://wiki.openqa.org/display/WTR/XPath Jesus.