如何自动单击Web浏览器消息框? [英] How to auto click webbrowser message box?

查看:70
本文介绍了如何自动单击Web浏览器消息框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以在Web浏览器消息框中单击确定"吗?
单击按钮后,使用:
WebBrowser1.Document.GetElementById("123").InvokeMember("click")
弹出一个消息框,单击确定和取消按钮.如何自动单击或自动按确定"?

你能帮我吗?

例如:

<img src="http://bucarotechelp.com/design/jseasy/images/msgbox2.jpg" border="0" />

Is there any way to click OK on a webbrowser message box?
After clicking a button using:
WebBrowser1.Document.GetElementById("123").InvokeMember("click")
a message box pops up with OK and Cancel buttons. How do I auto click or auto press OK?

Can you help me?

ex:

<img src="http://bucarotechelp.com/design/jseasy/images/msgbox2.jpg" border="0" />

推荐答案

我看不到任何方法.您将不得不使用该消息框...
I don''t see any way to do this. You will have to live with that message box...


这篇关于如何自动单击Web浏览器消息框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆