Jump to content
Sign in to follow this  
Buu85

Signin Automation Required

Recommended Posts

#include <IE.au3>


Local $oUser, $oPass, $oSubmit
Local $sUser = "testuser"
Local $sPass = "password"
Local $url = "https://          ?"
Local $oIE = _IECreate($url,1)

_IELoadWait($oIE)

$oInputs = _IETagNameGetCollection($oIE, "input")
for $oinput in $oInputs

    if $oinput.type = "text" And $oinput.name = "userid" And $oinput.size = "8" Then $oUser = $oInput

    if $oinput.type = "password" And $oinput.name = "password" And $oinput.size = "8" Then $oPass = $oInput

    if $oinput.type = "submit" And $oinput.value = " Sign in " Then $oSubmit = $oinput

    if IsObj($oUser) And IsObj($oPass) And isobj($oSubmit) then ExitLoop

Next

$oUser.value = $sUser
$oPass.value = $sPass
_IEAction($oSubmit, "click")

_IELoadWait

Do help me with the above script, its not working for.

Note: URL is removed while sharing the script, do help me out with the script only --------- (what's wrong with the script)

Share this post


Link to post
Share on other sites

@Buu85 It will be very hard to help you without the DOM of the 3 objects.  Just inspect the 3 objects, capture screen, and post it here.

Share this post


Link to post
Share on other sites

"Not working" isn't sufficient for us to help you solve the issue. You should post the results from the Scite output panel so that we can see where it is failing.

P.S. Based on your code, I would suggest taking a look at _IEGetObjByName, _IEFormElementSetValue, and _IEFormSubmit.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...