Let’s say we have the following list in an HTML document:
<ul id="menu">
<li><a href="/">Home</a></li>
<li><a href="/Page">Page</a></li>
</ul>
How do I verify with WatiN that “menu” contains exactly those hyperlinks, in a concise manner?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I ended up with this solution, it was the best I could think of:
Basically, I verify that there are two list items, and that they contain a link “Home” pointing to “/” and a link “Page” pointing to “/Page”.