Jump to content

Recommended Posts

Posted

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

Posted

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)

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...