alerts and confirmations with /n

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

alerts and confirmations with /n

GW-5
Hi,
i'm trying to verify an alert and a confirmaton in IE and Firefox with IDE. but the code is something like this aaa/nbbbb. And the test says that the actual value didn't match. But they're the same...
can someone helps me?
thank's
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1159&messageID=3297#3297

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: alerts and confirmations with /n

Mike Williams-7
ana wrote:

>  i'm trying to verify an alert and a confirmaton in IE and Firefox
>  with IDE. but the code is something like this aaa/nbbbb. And the test
>  says that the actual value didn't match. But they're the same...

Try "view source" of the test frame: you might discover that they're not
actually quite the same.

I suggest you sprinkle "*" wildcards into your assertion where you
suspect newlines might turn up, e.g.

| verifyAlert | aaa*bbb ||

--
cheers, MikeW                            http://www.dogbiscuit.org/mdub/


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RES: alerts and confirmations with /n

Ana Cristina dos Santos S Porto
In reply to this post by GW-5

Thank's Mike!

-----Mensagem original-----
De: Mike Williams [mailto:[hidden email]]
Enviada em: domingo, 12 de fevereiro de 2006 02:33
Para: [hidden email]
Assunto: Re: [selenium-users] alerts and confirmations with /n

ana wrote:

>  i'm trying to verify an alert and a confirmaton in IE and Firefox
>  with IDE. but the code is something like this aaa/nbbbb. And the test
>  says that the actual value didn't match. But they're the same...

Try "view source" of the test frame: you might discover that they're not

actually quite the same.

I suggest you sprinkle "*" wildcards into your assertion where you
suspect newlines might turn up, e.g.

| verifyAlert | aaa*bbb ||

--
cheers, MikeW                            http://www.dogbiscuit.org/mdub/


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]