how to assert hyperlink without id or labels

May 9, 2013 at 11:36 AM
Edited May 9, 2013 at 11:45 AM
Hi, i'm newbie with CUITe and Coded UI, could you help me with my issue.
how to assert hyperlink without any id,innertexts, and others
<div class="login" style="border: none;">
    <div class="member_box">
        <span>APPLY FOR MEMBERSHIP</span> <a href="/registration"> </a>
    </div>
How to make an assert to this class in cuite?

my code:
 CUITe_HtmlHyperlink SignUpHyperLink = elogin.Get<CUITe_HtmlHyperlink>("href=/registration");
Assert.IsTrue(SignUpHyperLink.Exists, "SignUp not found");
another code code with using different class in object repository
//Object repository
public CUITe_HtmlHyperlink SignUpHyperlink= new CUITe_HtmlHyperlink("href=/registration");
//Make an assert
Assert.IsTrue(elogin.SignUp.Exists, "SignUp not found");
not work at all(
Please, give me hand with issue. Thanks in advance!
May 9, 2013 at 2:50 PM
Try with contains

//Object repository
public CUITe_HtmlHyperlink SignUpHyperlink= new CUITe_HtmlHyperlink("href~registration");
May 10, 2013 at 11:32 AM
Sadiko wrote:
Try with contains

//Object repository
public CUITe_HtmlHyperlink SignUpHyperlink= new CUITe_HtmlHyperlink("href~registration");
very big thanks,this solves my trouble!