- Регистрация
- 21.08.2013
- Сообщения
- 249
- Благодарностей
- 12
- Баллы
- 18
Why I can't get the href attribute for the a tag like the code below?
What would be a better approach?
Код:
HtmlElementCollection heCol = doc.FindElementsByAttribute("div", "class", "myAwesoneClass", "text")
string postAuthor = heCol.GetByNumber(5).FindChildByAttribute("a", "class", "anotherClass", "text", 0).href;