wpf
C# -- IE automation #4 -- html 구조 파헤치기 출처: http://freeprog.tistory.com/214 [취미로 하는 프로그래밍 !!!]
마피아9
2017. 11. 14. 09:16
http://freeprog.tistory.com/214
//HtmlDocument doc = webBrowser1.Document;
mshtml.HTMLDocument doc2 = (mshtml.HTMLDocument)_currentWeb.Document; // as HtmlDocument;//webBrowser2.Document;
if (doc2 == null)
return;
mshtml.IHTMLElementCollection elems = doc2.getElementsByTagName("div");
foreach (mshtml.IHTMLElement item in elems)
//foreach (HtmlElement item in doc2.GetElementsByTagName("div"))
{
if (item.getAttribute("id") == "complete_check")
{
if (item.innerText != null && item.innerText != "")
{