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 != "")
                        {


'wpf' 카테고리의 다른 글

winform webBrowser2.ScriptErrorsSuppressed = true;   (0) 2017.11.14
프로그램 실행경로  (0) 2010.07.23
wpf toolkit DataGrid  (0) 2010.06.10