#2972 assigned Feature Request

Adding a sort of _IEAttributeGet function to IE.UDF — at Version 2

Reported by: j0kky Owned by: mLipok
Milestone: Component: AutoIt
Version: Severity: None
Keywords: GetAttribute IE.UDF Cc: gianlu2live@…

Description (last modified by mLipok)

There is no way to get the "class" (or other kind of) attribute value of an element using only IE Management UDF.
It can be solved just adding a simple function as:

Line 
1#include <IE.au3>
2
3_Example()
4
5Func _Example()
6 Local $oIE = _IECreate("www.autoitscript.com")
7 Local $oBody = $oIE.document.body
8 ConsoleWrite('! "Class" = ' & _IEAttributeGet($oBody, "class") & @CRLF)
9EndFunc ;==>_Example
10
11Func _IEAttributeGet($obj, $attr)
12 Return $obj.GetAttribute($attr)
13EndFunc ;==>_IEAttributeGet
14

Change History (2)

comment:1 by J-Paul Mesnage, on May 17, 2020 at 12:09:43 PM

Owner: set to mLipok
Status: newassigned

comment:2 by mLipok, on Mar 10, 2026 at 8:53:57 PM

Description: modified (diff)
Note: See TracTickets for help on using tickets.