我在操作网页的时候,会出现 js弹出的询问框,我不想手动点击,
用FOX 改怎么办
Dim web As Windows.Forms.WebBrowser
web = e.Form.Controls("weburl").baseControl
web.Document.GetElementById("tb_logout").InvokeMember("click")
点击这里后 会出现是否确认退出
用FOX 怎么做才能自动点击 或者隐藏操作
这里是编辑的
Dim web As Windows.Forms.WebBrowser
web = e.Form.Controls("weburl").baseControl
'------'退出程序'--------------'
web.Document.InvokeScript("eval", new String() { "window.alert = null;" })
If web.Document.Body.OuterHtml.Contains("退出") Then
web.Document.GetElementById("tb_logout").InvokeMember("click")
End If
帮看看为什么不好用 还是有提示 是否确定退出
[此贴子已经被作者于2014-1-19 20:39:37编辑过]