when page navigate to the home page, it will load two a labels with href,which created by jquery automatically . when i used page.elements.find("a",0).GetAttributes().get<string>("href"), it will will throw exception,will not get the value of "href".
who can helo me resolve it . thx
Zhaodong
0 Points
3 Posts
Cannt find element which created by jquery with LTAF
Jul 30, 2012 04:42 PM|LINK
when page navigate to the home page, it will load two a labels with href,which created by jquery automatically . when i used page.elements.find("a",0).GetAttributes().get<string>("href"), it will will throw exception,will not get the value of "href". who can helo me resolve it . thx
pro.shailend...
Participant
1000 Points
189 Posts
Re: Cannt find element which created by jquery with LTAF
Jul 31, 2012 05:28 AM|LINK
you can get href value by using attribute and id of anchor tag like as
var hrefval=$("#anchorid").attr("href");
Blog: Dot Net Tricks Windows Apps
Please "Mark As Answer" if my suggestions helps you
Zhaodong
0 Points
3 Posts
Re: Cannt find element which created by jquery with LTAF
Jul 31, 2012 06:04 AM|LINK
now i m usiing LTAF to test mvc ui, i wanna get the first "a" label and its attribute "href".