oh I see. Thanks a lot! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bret Pettichord Sent: Monday, September 12, 2005 11:34 PM To: [email protected] Subject: RE: [Wtr-general] check what's the content of this certain text
After calling ie.contains_text(), check the value of $& -- it'll be the value that was matched. Bret At 06:45 AM 9/12/2005, [EMAIL PROTECTED] wrote: >but i need to retrieve the actual value of that text... I will be doing >some checking based on that figure > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Atilla Ozgur >Sent: Monday, September 12, 2005 7:21 PM >To: [email protected] >Subject: Re: [Wtr-general] check what's the content of this certain text > > >try regular expressions? >\d-\d\\\d > >\d matches digits. > >assert($ie.contains_text(/\d-\d\\\d/)) > >this should match 1-1\1 to 9-9\9 but if you reports will have more >than one digit, you should use. >\d\d to match two digits. > >Hope it will be usefull. > >On 9/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > attached is the source of the webpage I want to test. I need to check a > certain text in this area. in this example... particularly the "1-1/1" > string. and that's dynamic depending on the number of reports returned. > It could be 1-3/3, etc... What's the best way in doing this? Thanks. > > > > > > <<SearchResult[1].txt>> > > > > > > -Jan > > > > > > _______________________________________________ > > Wtr-general mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > >_______________________________________________ >Wtr-general mailing list >[email protected] >http://rubyforge.org/mailman/listinfo/wtr-general > >_______________________________________________ >Wtr-general mailing list >[email protected] >http://rubyforge.org/mailman/listinfo/wtr-general _____________________ Bret Pettichord www.pettichord.com _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
