ra95 Posted October 6, 2017 Share Posted October 6, 2017 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 Link to comment Share on other sites More sharing options...
Danp2 Posted October 6, 2017 Share Posted October 6, 2017 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) ra95 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ra95 Posted October 7, 2017 Author Share Posted October 7, 2017 Thank You, i try, next day. Link to comment Share on other sites More sharing options...
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