找回密码
 加入
搜索
查看: 4113|回复: 7

[IE类操作] IE按钮点击。

  [复制链接]
发表于 2014-5-4 15:40:12 | 显示全部楼层 |阅读模式
本帖最后由 agohero 于 2014-5-7 13:22 编辑

https://cas.hwabaotrust.com/cas/ ... 2FSSOIntegration%2F

“登录”按钮如何点击。
 楼主| 发表于 2014-5-5 10:08:57 | 显示全部楼层
没人啊??
发表于 2014-5-5 13:12:10 | 显示全部楼层
网页中已经有这个代码了
看懂下面代码,就行了
function loginSSO(type){
                                if(type == 1){
                                        document.location.href = 'http://www.hwabaotrust.com/SSOIntegration/jsp/findPassword.jsp?timestamp='+new Date().getTime();
                                        return;
                                }
                                 //return;
                                var usernameVal = $.trim(document.getElementById("username").value);
                                if(usernameVal == "" || usernameVal == "身份证/护照/台胞证等"){
                                        document.getElementById("username").value = '';
                                        alert("请输入证件号!");
                                        return;
                                }
                                if(usernameVal == "111111111" || usernameVal == "111111111"){
                                        alert("证件号不能为【"+usernameVal+"】");
                                        return;
                                }
                                if(usernameVal =="021002020000002" || usernameVal == "A0000202001"){
                                        alert("证件号为【"+usernameVal+"】,不允许登录");
                                        return;
                                }
                                                                
                                if(document.getElementById("password").value==""){
                                        alert("请输入密码!");
                                        return;
                                }
                                
                                if(document.getElementById("ssofjm").value==""){
                                        alert("请输入验证码!");
                                        return;
                                }
                                if(($.trim(usernameVal) != '350100100105723') && checkIdcard(usernameVal)){
                                        document.getElementById("username").value = $.trim(usernameVal);
                                        document.getElementById("isIDCard").value='1';
                                }else{
                                        document.getElementById("isIDCard").value='0';
                                }
                                document.loginForm.action = '/cas/login';
                                document.loginForm.elements['operatorStr'].value = type;
                                document.loginForm.submit();
                        }
发表于 2014-5-5 13:26:49 | 显示全部楼层
刚才回复怎么要审核
看懂下面的代码,你就能点击了
代码就在网页里
function loginSSO(type){
                                if(type == 1){
                                        document.location.href = 'http://www.hwabaotrust.com/SSOIntegration/jsp/findPassword.jsp?timestamp='+new Date().getTime();
                                        return;
                                }
                                 //return;
                                var usernameVal = $.trim(document.getElementById("username").value);
                                if(usernameVal == "" || usernameVal == "身份证/护照/台胞证等"){
                                        document.getElementById("username").value = '';
                                        alert("请输入证件号!");
                                        return;
                                }
                                if(usernameVal == "111111111" || usernameVal == "111111111"){
                                        alert("证件号不能为【"+usernameVal+"】");
                                        return;
                                }
                                if(usernameVal =="021002020000002" || usernameVal == "A0000202001"){
                                        alert("证件号为【"+usernameVal+"】,不允许登录");
                                        return;
                                }
                                                                
                                if(document.getElementById("password").value==""){
                                        alert("请输入密码!");
                                        return;
                                }
                                
                                if(document.getElementById("ssofjm").value==""){
                                        alert("请输入验证码!");
                                        return;
                                }
                                if(($.trim(usernameVal) != '350100100105723') && checkIdcard(usernameVal)){
                                        document.getElementById("username").value = $.trim(usernameVal);
                                        document.getElementById("isIDCard").value='1';
                                }else{
                                        document.getElementById("isIDCard").value='0';
                                }
                                document.loginForm.action = '/cas/login';
                                document.loginForm.elements['operatorStr'].value = type;
                                document.loginForm.submit();
                        }
发表于 2014-5-7 08:21:00 | 显示全部楼层
回复 2# agohero


    _IELinkClickByText($oIE,"登 录 ")
发表于 2014-5-7 10:13:59 | 显示全部楼层
$form=_IEFormGetObjByName($oIE,'loginForm')
_IEFormSubmit($form)
 楼主| 发表于 2014-5-7 13:23:00 | 显示全部楼层
回复  agohero


    _IELinkClickByText($oIE,"登 录 ")
lin6051 发表于 2014-5-7 08:21



    感谢。没想到用字符串就可以解决了。还以为“登录”是图片文件
 楼主| 发表于 2014-5-7 13:23:21 | 显示全部楼层
$form=_IEFormGetObjByName($oIE,'loginForm')
_IEFormSubmit($form)
zxhou1 发表于 2014-5-7 10:13



    谢谢虽然没用上,但是提供了另外一个思路
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-6 03:43 , Processed in 0.076554 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表