gimx Posted January 15, 2008 Share Posted January 15, 2008 (edited) Hello, I get div and tbody in webpage. For tbody, i want to get only the tbody with class="blabla" and that work : For $oTbody In $oTbodyBlabla If String($oTbody.className) = "blabla" Then (code) EndIf Now, i want to get div by the id but that don't work. I use this code, what's wrong plz ? For $oDiv In $oDivIdid If String($oDiv.id) = "ididid" Then (code) EndIf Thx Edited January 15, 2008 by gimx Link to comment Share on other sites More sharing options...
DjDeep00 Posted January 15, 2008 Share Posted January 15, 2008 @gimx... It worked for me... $oDivIdid = _IETagNameGetCollection ($oIE, "DIV") For $oDiv In $oDivIdid MsgBox(4096,"",String($oDiv.id) ) Next I would use the following example from the help file to see if there are any div in the webpage. $oElements = _IETagNameAllGetCollection ($oIE) For $oElement In $oElements MsgBox(0, "Element Info", "Tagname: " & $oElement.tagname & @CR & "innerText: " & $oElement.innerText) Next Link to comment Share on other sites More sharing options...
gimx Posted January 15, 2008 Author Share Posted January 15, 2008 Ok thx, it's a good idea, i will try 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