python win32api 如何用代码模拟点击网页confirm框的确定按钮

 

mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)webBrowser1.Document.DomDocument;
doc.parentWindow.execScript("function confirm(str){return true}", "javascript");

 

 

 

参考:

https://bbs.csdn.net/topics/350058931

posted @ 2019-02-23 13:21  anobscureretreat  阅读(752)  评论(0编辑  收藏  举报