Results 1 to 1 of 1

Auto Login in web application by single click

Threaded View

  1. #1
    Registered User
    Join Date
    10-14-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    31

    Auto Login in web application by single click

    Hi ,

    I have designed a small Vba script to get auto login a web application.
    Set wshShell = WScript.CreateObject ("WSCript.shell")
    
    Set objexplorer = CreateObject("internetexplorer.application")
    
    objexplorer.Navigate "http://sse2.huawei.com"
    
    'objexplorer.Navigate "http://app.huawei.com/times/claim/TimeCardAction.do"
    objexplorer.Visible = True
    
    
    
    Do While objexplorer.busy
       
       WScript.Sleep 2000 
    Loop
    
    Do Until objexplorer.busy
    
    
    
    i = 1
    
    'objexplorer.Document.getElementsByName("user").Item(0).Value = ("XXXX")
    objexplorer.Document.getElementsByName("password").Item(0).Value = ("YYYY")
    
    'Call objexplorer.forms.form_submit()
    
    forms.SubmitBtn.Click()
    
    
    WScript.Sleep 4000 
    
    'On Error Resume Next
    
     Loop
    This script is able to browse my Url and filled username and password successfully but it can't click on submit button.

    can somebody please help me to correct it.


    Thank you so much.............
    Last edited by malviya_anil77; 09-11-2012 at 02:05 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1