반응형

C# -- IE automation #5 -- Attribute 제어하기


참고 : https://msdn.microsoft.com/ko-kr/library/aa752279(v=vs.85).aspx  --> IHTMLElement interface

       http://blog.clockahead.com/2015/06/cie-6.html  --> 페이지 로딩 완료 기다리는 확장메소드

       https://msdn.microsoft.com/ko-kr/library/aa752330(v=vs.85).aspx  --> setAttribute()


부제 :  HTML 태그 속성 제어하기

   -- getAttribute()

   -- setAttribute()
   -- 버튼 클릭하기




IHTMLElement.getAttribute() 에서는 "class" 사용못함. 대신에 "className" ( 또는 "classname")사용해야함. 


** 확장 메소드 사용법을 추가로 익혀두자.



< 소스 예 1 >





< 소스 예 2 >







반응형
Posted by 자유프로그램
,