Modify ↓
Opened 11 years ago
Last modified 10 hours ago
#2972 assigned Feature Request
Adding a sort of _IEAttributeGet function to IE.UDF
| 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 |
Attachments (0)
Change History (3)
comment:1 by , 6 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 11 hours ago
| Description: | modified (diff) |
|---|
comment:3 by , 10 hours ago
Note:
See TracTickets
for help on using tickets.

Here is my proposal: