Jump to content
Sign in to follow this  
berkan

need help with finding IE form element "password"

Recommended Posts

berkan

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-longid="passwordname="passwordtype="passwordvalue="" />

 

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 by berkan

Share this post


Link to post
Share on other sites
Exit

With field are you looking for ?

1.) Password in the login forn

or

2.) Password in the register form


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites
Exit

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)

 


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.