derKrieger Posted September 9, 2015 Author Share Posted September 9, 2015 Anyway, thank you for everything Chimp Link to comment Share on other sites More sharing options...
Gianni Posted September 9, 2015 Share Posted September 9, 2015 Hello Chimp, i had searched a lot before this thread, but now i realised i missed something at that time. I think as you recommend i can get value of everything by IETagNameGetCollection.Right?Really am i able to get all values or it has exceptions? Thank you Chimp, ...Hi derKriegerUsually to get values (also called properties) of the elements of the web page, you have to:1) get reference to that specific object by a variable that "points" to it2) "extract" the wanted properties from that objectabout point 1) there are various ways, for example you can use the _IEGetObjById() to get reference to an object of which you know the ID (to know the ID of an object you have to read it in the html source of the page). If the object has no ID then you can try with the _IEGetObjByName() (again to know the name of the object you have to read it in the html source of the page)Another way is to get a "collection" of all the objects of a particular type. For example if you want get a reference to an "input", you could use the _IETagNameGetCollection($oIE, "input") function to get a list of all the "input" objects on the page or just one of them by using the optional index parameter of this function.I suggest to read the help related to all the _IE* functions and try all the examples provided in the help. You will find also other ways to manage the objects on the web pages.about point 2) , once you have the reference to the wanted object obtained on point 1), you can get his properties with a syntax like this: $object.hrefwith the above statement for example, if the $object variable points to a link object (an <a> html tag) on the web page, will return the value of the href attribute of that link (the url). Have a look to references like this for example to get a list of possibles attribute of the <a> tag and also of the other various html objects.I warmly suggest again to read the infos about all the _IE* functions and try the related examples in the help of AutoIt, You will find there far more infos of the few that I can try to provide here. Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
derKrieger Posted September 10, 2015 Author Share Posted September 10, 2015 Thank you Chimp, you helped me a lot. I will do it as you suggest. Thank you again for everything 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