[Wtr-general] How to verify the values in the tages

2007-04-12 Thread vamsi
Hi, i need to verify the values in the tags.. the problem occurs in this way Actual in application is like this: do you want to continue. click on contnue button. HTML Source : Do you want to continue Click on continue Button. Script written like this.. Watir Recongizing this one as

Re: [Wtr-general] How to verify the values in the tages

2007-04-12 Thread Ċ½eljko Filipin
On 4/12/07, vamsi <[EMAIL PROTECTED]> wrote: can you pleae explain what does it mean by '\r' Hi Vamsi, \r is substitution in string. It represents Return. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list [EMAIL PROTECTED] http://rubyforge.

Re: [Wtr-general] How to verify the values in the tages

2007-04-12 Thread Chris McMahon
> Watir Result is like this: <"Do you want to continue. \n Click on continue > Button.> expected but was > <"Do you want to continue. \r\n Click on continue Button? So that "\r\n" means "carriage return -- line feed", and it has a long history. http://en.wikipedia.org/wiki/Carriage_return What'

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread vamsi
thanks for your help and it is working for single return... however i have 2 carriage returns after first line. ex: data="first line second line" so it will appear as "first line \r\n\r\r second line" ... could you please help what need to be added for regular expression to solve this issue.

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread Chris McMahon
"\s+" means "match any white space characters", so the regex will match any number of tabs, spaces, crs, and/or lfs. On 4/16/07, vamsi <[EMAIL PROTECTED]> wrote: > thanks for your help and it is working for single return... however i have 2 > carriage returns after first line. > > ex: data="firs

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread vamsi
i'm sorry, '\s+' is not working for multiple Carry returns( new line sapces) could you please assist me any other alternative? Regards Vamsi ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread Chris McMahon
On 4/16/07, vamsi <[EMAIL PROTECTED]> wrote: > i'm sorry, '\s+' is not working for multiple Carry returns( new line sapces) > could you please assist me any other alternative? > You'll have to supply more detailed information: what code are you using, what error are you getting? ___

Re: [Wtr-general] How to verify the values in the tages

2007-04-16 Thread vamsi
require 'test/unit' class TC_Spike < Test::Unit::TestCase def test_crlf data = "first line second line" assert_match(,data, /first line\s+second line/) end end error: "first line\r\n\r\nsecond line" expected but acutal was "/fist line\s+secondling/" Thanks for your support _

Re: [Wtr-general] How to verify the values in the tages

2007-04-17 Thread Bret Pettichord
vamsi wrote: > require 'test/unit' > > class TC_Spike < Test::Unit::TestCase > def test_crlf > > data = "first line > > second line" > > assert_match(,data, /first line\s+second line/) > end > end > > error: "first line\r\n\r\nsecond line" expected but acutal was "/fist > line\s+secondling/" >

Re: [Wtr-general] How to verify the values in the tages

2007-04-17 Thread Chris McMahon
> error: "first line\r\n\r\nsecond line" expected but acutal was "/fist > line\s+secondling/" Your application has badly misspelled the message to the user. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr

Re: [Wtr-general] How to verify the values in the tages

2007-04-19 Thread Michael Bolton
application under test--right? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon Sent: April 17, 2007 11:56 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] How to verify the values in the tages >def test_crlf >dat