Opened on Jan 20, 2015 at 5:34:23 PM
Last modified on Mar 10, 2026 at 9:19:26 PM
#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 )
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 | |
| 5 | Func _Example() |
| 6 | Local $oIE = _IECreate("www.autoitscript.com") |
| 7 | Local $oBody = $oIE.document.body |
| 8 | ConsoleWrite('! "Class" = ' & _IEAttributeGet($oBody, "class") & @CRLF) |
| 9 | EndFunc ;==>_Example |
| 10 | |
| 11 | Func _IEAttributeGet($obj, $attr) |
| 12 | Return $obj.GetAttribute($attr) |
| 13 | EndFunc ;==>_IEAttributeGet |
| 14 |
Change History (2)
comment:1 by , on May 17, 2020 at 12:09:43 PM
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , on Mar 10, 2026 at 8:53:57 PM
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.
