Jump to content
Sign in to follow this  
ra95

Read page Iexplorer

Recommended Posts

ra95

Hi gui i'm a noobe user, I want read form and compile for login:

Link: https://www.agenziadoganemonopoli.gov.it/portale/login

I have try tu use _IEFormGetCollection

Local $oIE = _IECreate("https://www.agenziadoganemonopoli.gov.it/portale/login")
Local $oForm = _IEFormGetCollection($oIE, 0)
Local $oElm = _IEFormElementGetCollection($oForm, 0)
_IEFormElementSetValue($oElm, "xxxxx")
????? for psw ???
_IEFormSubmit($oForm)

Please give me a info for correct read page with element.

Thanks in advance

Share this post


Link to post
Share on other sites
Danp2

That page contains multiple forms, so you'll need to make sure that you get a reference to the correct one.

Here's how I would try to do this --

#include <IE.au3>

Local $oIE = _IECreate("https://www.agenziadoganemonopoli.gov.it/portale/login")

Local $oForm = _IEGetObjById($oIE, "_58_INSTANCE_XbJk5yMmHuZl_fm")

Local $oElm = _IEFormElementGetObjByName($oForm, "_58_INSTANCE_XbJk5yMmHuZl_login")
_IEFormElementSetValue($oElm, "xxxxx")

$oElm = _IEFormElementGetObjByName($oForm, "_58_INSTANCE_XbJk5yMmHuZl_password")
_IEFormElementSetValue($oElm, "yyyyy")

_IEFormSubmit($oForm)

 

  • Like 1

Share this post


Link to post
Share on other sites
ra95

Thank You, i try, next day.

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  

×