Sign in to follow this  
Followers 0
lequithienan

help me form ie login

3 posts in this topic

#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 :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thanks very much :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0