I get all links on the current page, and then I looking for link that I need and then I want to get anchor (text between open and end tag of "a") of this link. I tried to use "obj.GetAttribute("innerText")", but it returns an empty string.
WebClient client = new WebClient();
string htmlCode = client.DownloadString("http://mysite1.com");
CQ cq = CQ.Create(htmlCode);
foreach (IDomObject obj in cq.Find("a")){
string href = obj.GetAttribute("href");
if (href.IndexOf("mysite2.com") != -1){
//get the anchor of this link
}
}