berkan Posted May 20, 2015 Posted May 20, 2015 (edited) There are two forms on this website and they both have identical elements for the password field. They conflict with one another when I try to identify them by: _IEGetObjById, _IEGetObjByName, etc. https://secure.twitch.tv/login This is the first password element/form:<label class='label'>Password</label><input class="field text med-long" id="password" name="password" type="password" value="" /> The below password element/form is what I'm trying to identify. What method can I use to identify this password field and type/fill the field?<label class='label' for='password'>Password</label><input autocomplete="off" class="field text med-long tall" id="password" name="password" type="password" value="" /> Edited May 20, 2015 by berkan
Exit Posted May 20, 2015 Posted May 20, 2015 With field are you looking for ?1.) Password in the login fornor2.) Password in the register form App: Au3toCmd UDF: _SingleScript()
Exit Posted May 20, 2015 Posted May 20, 2015 Here the code to fill both Password fields#include <IE.au3> OnAutoItExitRegister("_Exit") Func _Exit() MsgBox(64 + 262144, Default, "See you again!", 0) Execute("_IEQuit($oIE)") EndFunc ;==>_Exit $oIE = _IECreate("https://secure.twitch.tv/login") $oForm = _IEFormGetCollection($oIE, 1) $oQuery = _IEFormElementGetCollection($oForm, 6) _IEFormElementSetValue($oQuery, "MyLoginUserid") $oQuery = _IEFormElementGetCollection($oForm, 7) _IEFormElementSetValue($oQuery, "MyLoginPassword") MsgBox(64 + 262144, Default, "Check, if fields are filled", 0) $signup_tab = _IEGetObjById($oIE, "signup_tab") _IEAction($signup_tab, "Click") $oForm = _IEFormGetCollection($oIE, 2) $oQuery = _IEFormElementGetCollection($oForm, 9) _IEFormElementSetValue($oQuery, "MySignupUserid") $oQuery = _IEFormElementGetCollection($oForm, 10) _IEFormElementSetValue($oQuery, "MySignupPassword") MsgBox(64 + 262144, Default, "Check, if fields are filled", 0) App: Au3toCmd UDF: _SingleScript()
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now