Hi Hari,

I would suggest you to use the following method to check how many
messages

getXpathCount(String xpath)

That is to say, you can use

getXpathCount("//h:message")

or

getXpathCount("//*:message")

if namespace does not work there.

Thanks,

Jian
On Apr 6, 11:10 pm, Harihara Vinayakaram <[email protected]> wrote:
> Hi
>  This is the background . The product that I am working is based on JSF and
> Facelets .  The error messages are displayed using a <h:message> tag . Due
> to various reasons there were multiple <h:message> tags in the page which
> leads to a duplicity of error messages
>
>     This has now been cleaned up. How do I write Unit Test Cases to verify
> that there is only copy of the error message in the displayed page. Any
> suggestions welcome
>
>     The error messages are the same "Value is required" . The tests should
> be of the form I guess to look for this pattern in the given page. How do I
> go about writing this test case
>
>    Thanks
>
> Regards
> Hari
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to