Jump to content
Sign in to follow this  
trypay

SmartDraw Login

Recommended Posts

trypay

#include<IE.au3>
$sUsername = "test@gmail.com"
$sPassword = "test"
$sUrl = "https://www.smartdraw.com/smartshare/login/default.aspx"
$oIE = _IECreate($sUrl, 1)
Sleep(2000)
$oHWND = _IEPropertyGet($oIE, "hwnd")
WinSetState($oHWND, "", @SW_MAXIMIZE)
$oForm = _IEFormGetCollection($oIE, 0)
$oUsername = _IEFormElementGetObjByName($oForm, 'Email')
$oPassword = _IEFormElementGetObjByName($oForm, "Password")
_IEFormElementSetValue($oUsername, $sUsername)
_IEFormElementSetValue($oPassword, $sPassword)
_IEFormSubmit($oForm)

It only fills the Email field, and not the password field. Thank you for your help.

And the view source info

<input name="Email" type="text" id="Email" spellcheck="false" autocomplete="on" />

<span id="ctl00__mpBody__reqEmail" style="color:Red;display:none;">*</span><span id="ctl00__mpBody__validEmail" style="color:Red;display:none;">*</span>

</li>

<li>

<input name="Password" type="password" id="Password" autocomplete="on" />

<input name="ctl00$_mpBody$_fakePassword" type="text" value="Password" id="ctl00__mpBody__fakePassword" class="login-watermark" />

<span id="ctl00__mpBody__reqPassword" style="color:Red;display:none;">*</span>

Edited by trypay

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  

×