Python 完成IE调用的示例源码分享,python示例,Python 完成IE调


Python 完成IE调用的示例源码分享, win32com.client及time方法需要了解并使用。

#导入方法,模块import win32com.client   import time   ie6=win32com.client.Dispatch("InternetExplorer.Application")   ie6.Navigate("http://localhost/skyenet/")   ie6.Visible=1  while ie6.Busy:     time.sleep(1)  #www.iplaypy.com   document=ie6.Document   document.getElementById("username").value="alibaba"  document.getElementById("password").value="zhimakamen"  document.forms[0].submit()  

编橙之家文章,

评论关闭