q410225 发表于 2016-12-23 16:19:23

这个网站的自动登录,该如何搞定呢[已解决]

本帖最后由 q410225 于 2016-12-24 19:58 编辑

<!DOCTYPE html>
<html lang="en">
<head>
        <meta charset="UTF-8">
        <title>登录</title>
</head>
<body>
        <style>
                .login {
                        width: 300px;
                        height: 120px;
                        margin: auto;
                        padding-top: 150px;
                        /* margin-top: -150px; */
                }

                input {
                        width: 300px;
                        margin-bottom: 10px;
                        line-height: 24px;
                }
        </style>
        <div class="login">
                <form method="post" accept-charset="utf-8">
                        邮箱:<input type="text" name="email">
                        密码:<input type="password" name="passwd">
                        <button>确定</button>
                </form>
        </div>
</body>
</html>邮箱密码都可以输入,这个确定密码该如何点呢?



#include <IE.au3>

$oIE = _IECreate ("")
$oForm = _IEFormGetCollection($oIE, 0)
$User = _IEGetObjByName($oIE,"email")
$User.value = ""
$PW = _IEGetObjByName($oIE,"passwd")
$PW.value = ""
_IEFormSubmit($oForm)

cxlater 发表于 2016-12-24 13:56:52

这个网站的域名是 没有ad   但是ad却满天飞
ie可以实现登录但是用ie访问这个网站实在是体验太差   chrome的自动操作貌似比较难

q410225 发表于 2016-12-24 14:26:46

回复 2# cxlater


搞定IE也可以,然后把cookies提取出来,给chrome使用

但IE我都不会弄

nmgwddj 发表于 2016-12-26 14:22:35

你的代码是可以正常提交的。

wbb870319 发表于 2016-12-29 18:40:14

学习,看大大怎么弄。
页: [1]
查看完整版本: 这个网站的自动登录,该如何搞定呢[已解决]