legend Posted March 5, 2019 Posted March 5, 2019 I need to insert some text in the inputfield on a website, as you can see it has no ID, no name, just a class, so i'm really not sure how It's possible to insert text into the field. Does anyone have a good idea?
FrancescoDiMuro Posted March 5, 2019 Posted March 5, 2019 @legend _IETagnameGetCollection() with div, a For Each loop, and the .ClassName property Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
legend Posted March 5, 2019 Author Posted March 5, 2019 I tried this, witch grabs the inner text, but the field has no text, how would I use it with the classname?:) #include <IE.au3> Local $oIE = _IECreate("http://url.com", 1) sleep(10000) _IELoadWait($oIE) Local $oNavs = _IETagNameGetCollection($oIE, "div") For $oNav In $oNavs $oLinks = _IETagNameGetCollection($oNav, "a") For $oLink In $oLinks MsgBox("", "", $oLink.InnerText) Next Next
FrancescoDiMuro Posted March 5, 2019 Posted March 5, 2019 (edited) @legend #include <IE.au3> Local $oIE = _IECreate("http://url.com", 1) sleep(10000) ; You don't need this if you use _IELoadWait. _IELoadWait($oIE) Local $oNavs = _IETagNameGetCollection($oIE, "div") For $oNav In $oNavs $oLinks = _IETagNameGetCollection($oNav, "a") For $oLink In $oLinks MsgBox("", "", $oLink.className) Next Next Edited March 5, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
legend Posted March 5, 2019 Author Posted March 5, 2019 (edited) thanks that way I can click it, _IEAction($oLink, "click") How would I insert some text to the class? Edited March 5, 2019 by legend
FrancescoDiMuro Posted March 5, 2019 Posted March 5, 2019 @legend The .Value property is used to set the value (content/caption) of an Input Box control Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
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