Internet Explorer的问题 [英] Problems in internet explorer

查看:82
本文介绍了Internet Explorer的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好Internet Explorer中的问题不点击登录按钮我不知道这段代码的错误



hello Problems in internet explorer Does not click the login button I do not know where error this code

Dim web As Object
        web = CreateObject("InternetExplorer.Application")

        web.Navigate("www.facebook.com") 

   
   web.Visible = True

Threading.Thread.Sleep(5000)
web.Document.GetElementById("submit").InvokeMember("click")







我不想使用性能webbrowser而且我不想使用sendkey

我想要使用有问题的代码并处理它以及如何通过单击按钮




I do not want to use the performance webbrowser And I do not want to use sendkey
I want to use the code in question and deal with it and how do I access by clicking on the button

推荐答案

来访问我刚刚检查了http:\\www.facebook .com:没有按钮 id =submit



整个方法看起来很糟糕,看起来像是一种虐待。如果没有安装IE怎么办?根据您的需要,您可以1)使用 WebControl 控件创建UI应用程序,或2)没有任何UI,使用 HttpWebRequest 。但为什么要这么做呢?



-SA
I just checked up http:\\www.facebook.com: there is not a button with id="submit".

And the whole approach seems bad, looks like an abuse. What if IE is not installed? Depending on what you need, you could 1) create a UI application using the WebControl control, or 2) without any UI, use HttpWebRequest. But why doing all that?

—SA


你可以尝试下面的代码



you can try below code

Dim web As Object
        web = CreateObject("InternetExplorer.Application")
 
        web.Navigate("www.facebook.com") 
 
   
   web.Visible = True
 
Threading.Thread.Sleep(5000)
web.Document.GetElementById("loginbutton").InvokeMember("click")





它可能对你有用



谢谢

Gaurav Dhol

Skype:dhol.gaurav



it might work for you

Thanks
Gaurav Dhol
Skype: dhol.gaurav


这篇关于Internet Explorer的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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