Hey All,
Currently i am trying to right mouse click onto a specific getElementById/getElementsByClassName. Please find attached the HTML which should show the key elements.
Manually i would hover over a figure(in this case 88.4(colored in RED)) and then right mouse click which opens a little window where i left click onto Excel Detail Export(colored in GREEN)--> this would than start the downloading process
This bit unfortuanaly does not work.
Set xobj = IEapp.Document.getElementsByClassName("content content5")
Set xobj = xobj.getElementById("kpiId_OB_DOX_2011_NC")
xobj.Children(3).Click
Probably the Main issue is that the ClassName("content content5") and the getElementById("kpiId_OB_DOX_2011_NC") is not unique within the entire source code.
Therefore i tried to loop through all elements but without luck.
TEST LOOP
For Each elem In IEapp.Document.all
If elem.className = "content content5" Then
Set YTDValue = elem
Debug.Print YTDValue.innerText
End If
Next
Output
87.5
90.1
88.4 <-- The one i am looking for
90.3
79.1
...
...
...
If you could help me to set the focus onto the object so the xobj.Children(3).Click will work, this would be awesome.
Thanks in advance.
Example Source Code.jpg
Bookmarks