Jump to content

help me form ie login


Recommended Posts

#include <ie.au3>
$oie = _IECreate("https://www.woodinvillewinecountry.com/OrderForm.cfm?cart=22274003",1,1)
_Ieloadwait($oie)
$html = _IEDocReadHtml($oie)
$username_default = "bryanmcf"
$password_default = "discovery"
If stringinstr($html,"please log in") Then
    $formlogin = _IEFormGetObjByName($oie,"login")
    $username = _IEFormElementGetObjByName($formlogin,"username")
    $password = _IEFormElementGetObjByName($formlogin,"password")
    _IEFormElementSetValue($username,$username_default)
    _IEFormElementSetValue($password,$password_default)
    _IEFormSubmit($oie)
Endif

This is my code , function login to website woodinvillewinecountry.com . I can fill in to form but not submit form to login :) . Plz help me :)

Link to comment
Share on other sites

#include <ie.au3>
$oie = _IECreate("https://www.woodinvillewinecountry.com/OrderForm.cfm?cart=22274003",1,1)
_Ieloadwait($oie)
$html = _IEDocReadHtml($oie)
$username_default = "bryanmcf"
$password_default = "discovery"
If stringinstr($html,"please log in") Then
    $formlogin = _IEFormGetObjByName($oie,"login")
    $username = _IEFormElementGetObjByName($formlogin,"username")
    $password = _IEFormElementGetObjByName($formlogin,"password")
    $login = _IEFormElementGetObjByName($formlogin,"Submit")
    _IEFormElementSetValue($username,$username_default)
    _IEFormElementSetValue($password,$password_default)
    _IEAction ($login,"click")
Endif

Just like with the username and password, yovue got to get the element object of the submit button, on which you can then, "click".

Instant Lockerz Invite - www.instantlockerzinvite.co.uk
Link to comment
Share on other sites

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...