vbscript website task

Discussion in 'Programming' started by ssimon171078, Nov 27, 2014.

  1. #1
    i need to navigate to my product and click on my product after i sign in into website seoclerks. how can i change this code my code is :
    Call Main

    Function Main
    Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
    IE.Visible = True
    IE.Navigate "https://www.seoclerk.com/login"
    Wait IE
    With IE.Document
    .getElementByID("l_username").value = "test12345"
    .getElementByID("l_password").value = "12345"
    .getElementByID("loginform").submit()
    End With
    End Function

    Sub Wait(IE)
    Do
    WScript.Sleep 500
    Loop While IE.ReadyState < 4 And IE.Busy
    End Sub
     
    ssimon171078, Nov 27, 2014 IP