Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
VBSCRIPT Instagram自动登录失败_Vbscript_Automation_Instagram_Form Submit_Autologin - Fatal编程技术网

VBSCRIPT Instagram自动登录失败

VBSCRIPT Instagram自动登录失败,vbscript,automation,instagram,form-submit,autologin,Vbscript,Automation,Instagram,Form Submit,Autologin,尝试创建一个简单的脚本自动登录到我的instagram帐户。提交表单后(以编程方式单击登录按钮),用户名和密码字段将清除,登录失败。有办法吗?提前谢谢 Set IE = CreateObject("internetexplorer.application") 'Login IE.Visible = true IE.Navigate "https://www.instagram.com/accounts/login/" Do While IE.Busy Or IE.ReadyState <

尝试创建一个简单的脚本自动登录到我的instagram帐户。提交表单后(以编程方式单击登录按钮),用户名和密码字段将清除,登录失败。有办法吗?提前谢谢

Set IE = CreateObject("internetexplorer.application")

'Login
IE.Visible = true
IE.Navigate "https://www.instagram.com/accounts/login/"
Do While IE.Busy Or IE.ReadyState <> 4: WScript.Sleep 100: Loop 

for each a in ie.document.getelementsbytagname("input")
    if a.name = "username" then
        a.value = "myusername" '<=== Enter user name here
    end if
next


for each b in ie.document.getelementsbytagname("input")
    if b.name = "password" then
        b.value = "my password" '<===== Enter password here
    end if
next

wscript.sleep 1000

for each btn in ie.document.getelementsbytagname("button")
    if btn.innertext = "Log in" or btn.getAttribute("class") = "_qv64e _gexxb _4tgw8 _njrw0" then
        btn.click
    end if
next

'IE.document.Forms(0).Submit
Set IE=CreateObject(“internetexplorer.application”)
'登录
可见=真实
即“导航”https://www.instagram.com/accounts/login/"
在IE.Busy或IE.ReadyState 4:WScript.Sleep 100:Loop时执行
对于ie.document.getelementsbytagname(“输入”)中的每个a
如果a.name=“username”,则

a、 value=“myusername”'我还尝试使用.focus和.blur,但blur也会擦除值项。我还尝试使用.focus和.blur,但blur也会擦除值项。