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
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.
> 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'
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.
"\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
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
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?
___
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
_
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/"
>
> 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
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
11 matches
Mail list logo