CC_Mu Posted August 29, 2018 Posted August 29, 2018 I need to access to this website https://downloads.autocount.com/, type in ID and password, hit Sign in. Currently I use the following code to click the pop up window for ID and password, but nothing happened. Any idea what did i do wrong? #include <IE.au3> Local $user = "myid" Local $pw = "mypassword" Local $oIE = _IECreate ("https://downloads.autocount.com/") _IELoadWait($oIE) Sleep(2000) ControlSend("Windows Security", "", "[CLASS:Edit; INSTANCE:1]", $pw) the x86 info is here expandcollapse popup>>>> Window <<<< Title: Windows Security Class: #32770 Position: 929, 277 Size: 547, 366 Style: 0x96C80A84 ExStyle: 0x00010101 Handle: 0x000B11EC >>>> Control <<<< Class: Edit Instance: 1 ClassnameNN: Edit1 Name: Advanced (Class): [CLASS:Edit; INSTANCE:1] ID: Text: Position: 130, 108 Size: 238, 22 ControlClick Coords: 183, 19 Style: 0x500000A0 ExStyle: 0x00000000 Handle: 0x00081130 >>>> Mouse <<<< Position: 1251, 440 Cursor ID: 0 Color: 0x000000 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< OK Cancel >>>> Hidden Text <<<< Remember my credentials Thank you so much for helping me.
FrancescoDiMuro Posted August 29, 2018 Posted August 29, 2018 @CC_Mu If you are automating IE stuffs, and you already have created IE object, why don't you keep using _IE* functions? Take a look at _IEGetObjById(), _IEGetObjByName() and _IEPropertySet() in the Help file Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
CC_Mu Posted August 29, 2018 Author Posted August 29, 2018 13 minutes ago, FrancescoDiMuro said: @CC_Mu If you are automating IE stuffs, and you already have created IE object, why don't you keep using _IE* functions? Take a look at _IEGetObjById(), _IEGetObjByName() and _IEPropertySet() in the Help file Hey FrancescoDiMuro, thanks for replying me, because it is a pop-up window, I can not find its backend script, so I dont know how to use _IE* functions to interact with the pop up windows.
Danp2 Posted August 29, 2018 Posted August 29, 2018 The script is essentially paused until you deal with the security dialog. I think the general solution here is to kick off a second script (before you perform the _IECreate) that fills in the dialog, and then your initial script should continue. Latest Webdriver UDF Release Webdriver Wiki FAQs
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