Jump to content

Problem with auto login


Recommended Posts

Problem: I have the script enter the information into the required fields but I can't get it to click "Sign In"?

Website: https://login.verizonwireless.com/amserver/UI/Login

Website Source Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">










<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us" xml:lang="en-us">
<head>
    <title>My Verizon Online Sign In - Verizon Wireless</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta http-equiv="Content-Language" content="en-us" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Cache-Control" content="no-cache, no-store" />
    <meta name="Description" content="Sign in securely to your Verizon Wireless account, view and pay your bills, upgrade to a new phone, change your calling plan, activate your new phone, change your address." />
    <meta name="Keywords" content="pay bill, billing, survey, bill, upgrade your phone, customer service, care" />

    <script type="text/javascript">
        function disableBut(){
            $('signIn').setStyles({'opacity':0.5,'filter':'alpha(opacity=50)'});
            $('signIn').set('disabled',true);
            document.loginForm.submit();
        }
        var webServer = 'https://scache.vzw.com';
        var b2cDomain = 'http://www.verizonwireless.com';
    </script>








<style type="text/css">
    .right475Dotted {float:left; width:481px; background:url(https://scache.vzw.com/images_b2c/shared/elements/dottedBg3x1.gif) repeat; margin:0;}
    .right475Dotted .content {background-color:#fff; margin-left:1px; margin-right:1px; height:100%;}
</style> 
              

                

<link rel="stylesheet" href="https://scache.vzw.com/stylesheets/layout.css" />
<link rel="stylesheet" href="https://scache.vzw.com/stylesheets/fonts.css" />
<link rel="stylesheet" href="https://ecache.vzw.com/imageFiles/Myacct/gn/css/vzw_jquery.css" />
<link rel="stylesheet" href="https://ecache.vzw.com/imageFiles/Myacct/gn/css/globalnav.css" />
<link rel="stylesheet" href="https://scache.vzw.com/globalnav/css/globalnav-js.css" />
<!--[if lte IE 6]>
    <link rel="stylesheet" href="https://ecache.vzw.com/imageFiles/Myacct/gn/css/globalnavie6.css" />
    <link rel="stylesheet" href="https://scache.vzw.com/globalnav/css/globalnavIE-js.css" />
<![endif]-->

<script type="text/javascript" src="https://ecache.vzw.com/imageFiles/Myacct/gn/scripts/vzw_jquery.js"></script>
<script type="text/javascript" src="https://ecache.vzw.com/imageFiles/Myacct/gn/scripts/globalnav.js"></script>
<script type="text/javascript" src="https://scache.vzw.com/scripts/accessible/mootools.js"></script>
<script type="text/javascript" src="https://scache.vzw.com/scripts/homepage/swfobject.js"></script>
<script type="text/javascript" src="https://scache.vzw.com/globalnav/globalnav.js"></script>
<script type="text/javascript" src="https://ecache.vzw.com/imageFiles/Myacct/gn/scripts/hbx.js"></script>
<script type="text/javascript" src="https://scache.vzw.com/scripts/accessible/library.js"></script>
<script>var loggedInURL = 'https://login.verizonwireless.com:443/amserver/UI/Login';</script>

<script type="text/javascript" src="https://scache.vzw.com/scripts/liveperson/vzw-login_mtagconfig.js"></script>



</head>

<body>
    <div id="globalNavId"><div id="GlobalNavigation"></div></div>
    <script>render('globalNavId');</script>

<div id="pageWrapper">
    <div id="bodyWrapper">
    
    <a name="content"></a>
<div id="bodyContainer">
    <div id="contentHeader"></div>
    
            <div id="left315">
                <div class="borderedLeft">
                    <form method="post" autocomplete="off" action="https://login.verizonwireless.com:443/amserver/UI/Login" name="loginForm" id="loginForm" onsubmit="return disableBut();">
                        <input type="hidden" name="realm" value="vzw" />
                        <input type="hidden" name="goto" value="" />
                        <input type="hidden" name="gotoOnFail" value="" />
                        <input type="hidden" name="gx_charset" value="UTF-8" />
                        <input type="hidden" name="rememberUserNameCheckBoxExists" value="Y" />
                        <h2 style="padding-left:0px;">Sign In to My Verizon</h2>
                        <div class="clear10"> </div>
                        
                        
                        
                        
                        
                        <label for="IDToken1" class="boldText">User ID or Cell Phone Number</label> <a href="https://myaccount.verizonwireless.com/accessmanager/public/controller?action=displayForgotUserName&amp;goto=" class="smallLink noUnderlineLink"> Forgot User ID?</a><br />
                        <input type="text" autocomplete="off" tabindex="1" size="20" maxlength="60" name="IDToken1" id="IDToken1" value="" /><br />
                        <div class="clear10"></div>
                        <label for="IDToken2" class="boldText">Password</label><a href="https://myaccount.verizonwireless.com/accessmanager/public/controller?action=displayForgotPassword&amp;goto=" class="smallLink noUnderlineLink"> Forgot Password?</a><br />
                        <input type="password" autocomplete="off" tabindex="2" size="20" maxlength="20" name="IDToken2" id="IDToken2" value="" />
                        <div class="clear10"> </div>
                        <span class="boldText bodySmallText">                                                
                        <button type="submit" onclick="disableBut();" name="signIn" id="signIn" title="signIn" tabindex="3" class="redButton"><span><span>Sign In</span></span></button><br />
                        <input type="checkbox" id="rememberUserName" name="rememberUserName" tabindex="4" value="Y"  /> <label for="rememberUserName">Remember User ID?</label></span> <a href="javascript:void(0);" class="tooltip"><img src="https://scache.vzw.com/images_b2c/shared/elements/question_mark.gif" alt="question mark" /></a>
                        <div class="tip">
                            <p>"Remember Me" stores your User ID on this computer.  You should not use this feature on public computers (such as those in a library or Internet café).</p>
                        </div>
                    </form>
                </div>
            </div>

            <div class="center315Dotted" style="height:245px;">
                <div class="content" style="margin-right:0px;">
                    <h2>Register</h2>
                    <div class="clear10"> </div>
                    <div class="bordered bodySmallText">
                        <div style="margin-left:10px;">
                            <div style="margin-left:10px;">
                                With My Verizon, you get the convenience of managing your account online including these great benefits:
                                <ul>
                                    <li>Check your minutes and messages</li>
                                    <li>Change or reset your Voice Mail password</li>
                                    <li>Purchase ringtones and manage Ringback Tones</li>
                                    <li>Access My Verizon on your mobile phone</li>
                                </ul>
                                <div style="float:left;">
                                    <a href="http://www.verizonwireless.com/b2c/myaccount/selfserve.jsp" class="noUnderlineLink">Learn More</a>
                                    <div class="clear10"> </div>
                                    <button type="button" class="redButton" title="Register" onclick="location.href='https://myaccount.verizonwireless.com/accessmanager/public/controller?action=displayRegistration&amp;goto=';" ><span><span>Register</span></span></button>
                                </div>
                        </div>
                    </div>
                            </div>
                </div>
            </div>
    
            <div class="right315">
    
    <div style="position:relative;top:-15px;">
    <div>
        <script type="text/javascript">document.write('<a href="http://www.verizonwireless.com/b2c/splash/iphone.jsp">');</script>
        <script type="text/javascript">document.write('<img src="'+webServer+'/images_b2c/phones/special/AM_ipod_launch.jpg" alt="iPhone 4" style="position:absolute;"/>');</script>
        <script type="text/javascript">document.write('</a>');</script>
    </div>
</div>
  

                
                
                <div id="lpchatbuttondiv"></div>
                <script type="text/javascript">
                lpAddVars('page','FailedLogin','null');
                if(typeof(lpMTagConfig.dynButton)!="undefined")
                lpMTagConfig.dynButton[lpMTagConfig.dynButton.length] = {'name':"chat-"+lpUnit+"-"+lpLanguage,'pid':'lpchatbuttondiv','ovr':'lpMTagConfig.db1'};
                </script>
                
            </div>

            <div class="clear20"></div>
            <div class="dottedLine"></div>
            <div class="clear20"></div>
            
            <div id="left475">
                <div class="content">
                    <div class="clear10"></div>
                    <div style="margin-left:10px;">
                        <div class="launcher left"><img height="132px;" width="90px;" src="https://scache.vzw.com/images_b2c/accessmanager/RegisterMVM.jpg" /></div>          
                        <div style="margin-bottom:5px;font-size:15px" class="boldText">Summon Total Control with My Verizon Mobile</div><br />
                        <div><b></b></div>
                        <div class="bodySmallText" style="width:300px;float:left;"><strong>Manage your wireless service with the My Verizon Mobile App while you're on-the-go.</strong>
                           <div class="clear20"></div>
                           <a href="http://support.vzw.com/how_to_use/accessing_my_verizon.html" onclick="_hbLink('MyVerizonMobile_SignIn');">Learn More</a>
                        </div>                        
                     </div>
                </div>
            </div>
            <div class="right475Dotted" style="height:100px;">
                <div class="content">
                    <div class="clear10"></div>
                    <div style="margin-left:10px;">
                        <script type="text/javascript">document.write('<img src="https://scache.vzw.com/images_b2c/accessmanager/redmap.jpg" class="left" alt="" />');</script>
                        <div style="color:red; margin-left:0px;margin-bottom:5px;" class="boldText">America's Largest and Most Reliable Network</div>
                        <div class="bodySmallText" style="width:250px;">We test and optimize our network every day so you can get America's largest and most reliable network.<br />
                            <div style="margin-top:5px;"><a href="http://www.verizonwireless.com/b2c/myaccount/selfserve.jsp" class="noUnderlineLink">Learn More</a></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clear10"></div>            
        </div>

<div class="clear30"> </div>

<!-- Start of DoubleClick Spotlight Tag: Please do not remove--> 
<!-- Activity Name for this tag is:VZW My Personal Account --> 
<!-- Web site URL where tag should be placed: https://login.verizonwireless.com/amserver/UI/Login?realm=vzw&goto=https%3A%2F%2Fmyaccount.verizonwireless.com%3A443%2Fclp%2Flogin%3Flid%3D%2F%2Fglobal%2F%2Fmy%2Baccount%2F%2Fpersonal%2Baccount --> 
<script language="JavaScript" type="text/javascript"> 
var axel = Math.random()+""; 
var a = axel * 10000000000000; 
document.write('<iframe src="https://fls.doubleclick.net/activityi;src=685973;type=vzwmy665;cat=vzwmy633;ord='+ a + '?" width="1" height="1" frameborder="0"></iframe>'); 
</script> 
<noscript> <iframe src="https://fls.doubleclick.net/activityi;src=685973;type=vzwmy665;cat=vzwmy633;ord=0123456789?" width="1" height="1" frameborder="0"></iframe> </noscript> 
<!-- End of DoubleClick Spotlight Tag: Please do not remove-->
<!-- BEGIN HBX SUPPORT -->
<!-- HBX SCRIPTS -->
<script type="text/javascript">
<!-- mp_trans_process_disable_start -->
    hbxPageViewTag("/my account","null","login");
    hbxCreateCustomTag("cv.c34", "GtdJ2ez5%2BoNpUNWouu7qC4fVm9oWuHUST4bEGPu8VmhmTASJyeZYc8OktQaJPRze");
<!-- mp_trans_process_disable_end -->
</script>
<!-- END HBX SUPPORT -->

</div>
<div>
    <div id="footer">
        <div id="footerLinks">
            <div class="footerCopyright">&copy; 2011 Verizon Wireless</div>
            <a href="http://www.verizonwireless.com/b2c/sitemap.jsp">Site Map</a> |
            <a href="http://www.verizonwireless.com/b2c/footer/privacy.jsp">Privacy</a> |
            <a href="http://www.verizonwireless.com/b2c/footer/legalNotices/index.jsp">Legal Notices</a> |
            <a href="http://www.verizonwireless.com/b2c/footer/webuse.jsp">Website Use</a> |
            <a href="http://www.verizonwireless.com/b2c/globalText?textName=CUSTOMER_AGREEMENT&amp;jspName=footer/customerAgreement.jsp">Customer Agreement</a> |
            <a href="http://www.verizonwireless.com/b2c/globalText?textName=RETURN_POLICY&amp;jspName=footer/returnPolicy.jsp">Return Policy</a> |
            <a class="nowrap" href="http://www.verizonwireless.com/b2c/globalText?textName=WORRY_FREE_GUARANTEE&amp;jspName=support/worryFree.jsp&amp;textName=WORRY_FREE_GUARANTEE&amp;jspName=support/worryFree.jsp">Worry Free Guarantee</a> |
            <a href="http://www.verizonwireless.com/b2c/bestNetwork/itsthenetwork.jsp">Best Network</a>
    
            <div class="footerIcons">
                <script src="https://seal.verisign.com/getseal?host_name=www.verizonwireless.com&amp;size=S&amp;use_flash=NO&amp;use_transparent=NO&amp;lang=en" type="text/javascript"></script>
                <a href="http://www.verizonwireless.com/b2c/footer/privacy.jsp"><img src="https://scache.vzw.com/images_b2c/shared/nav/finalmark.gif" alt="TRUST-e Privacy" height="72" width="125" /></a>
                <a href="http://www.bbbonline.org/cks.asp?id=10305271131732383" onclick="popUp(this.href,'popup',450,300);return false;"><img src="https://scache.vzw.com/images_b2c/shared/nav/bbb_online.gif" height="72" width="103" alt="BBB OnLine Reliability Program" /></a>
            </div>
        </div>
    </div> 

    </div>
    <div class="clear"></div>
</div> 
<script type="text/javascript">
    addLoadEvent(setButtons);
    addLoadEvent(png_init);
</script>
<script type="text/javascript">gn_iframe = 'https://scache.vzw.com/scripts/globalnav/blank.html';</script>
<script type="text/javascript" src="https://scache.vzw.com/scripts/accessible/lib.js"></script>
<script type="text/javascript" src="/amserver/layers.js"></script>



<script type="text/javascript" src="https://scache.vzw.com/js/shared/hbx/hbxVariablesmyaccount.js"></script>
<script type="text/javascript" src="https://scache.vzw.com/js/shared/hbx/hbx.js"></script>


</body>
</html>

Mainly this line:

<button type="submit" onclick="disableBut();" name="signIn" id="signIn" title="signIn" tabindex="3" class="redButton"><span><span>Sign In</span></span></button><br />

My Script:

#include <IE.au3>

$user = "User ID"
$pass = "PassWord"
$oIE = _IECreate ("https://login.verizonwireless.com/amserver/UI/Login")
_IELoadWait ($oIE)

$uForm = _IEFormGetObjByName ($oIE, "loginForm") ; Name or overall form in html
$uText = _IEFormElementGetObjByName ($uForm, "IDToken1"); Name of username box within form
_IEFormElementSetValue ($uText,$user)

$pText = _IEFormElementGetObjByName ($uForm, "IDToken2"); Name of password box within form
_IEFormElementSetValue ($pText,$pass)
_IEFormSubmit ($uForm)

And I have tried this instead of _IEFormSubmit() and nothing works...:

$oSubmit = _IEGetObjByName ($oIE, "signIn")
_IEAction ($oSubmit, "click")

$oSubmit = __IEFormElementGetObjByName ($uForm, "signIn")
_IEAction ($oSubmit, "click")
Edited by rogue5099
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...