saeed88 Posted January 14, 2012 Share Posted January 14, 2012 hello guys I need a code tell you the tag exist or not . Link to comment Share on other sites More sharing options...
JohnOne Posted January 14, 2012 Share Posted January 14, 2012 _IETagNameAllGetCollection() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
saeed88 Posted January 14, 2012 Author Share Posted January 14, 2012 yes I Know this code , but I want to check if a tag is exist or not . if not exist tell me "Not exist" Link to comment Share on other sites More sharing options...
JohnOne Posted January 14, 2012 Share Posted January 14, 2012 Then use its return to determine that. Do you want the code written for you? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
saeed88 Posted January 14, 2012 Author Share Posted January 14, 2012 Dear John please tell me how to return the exist or not , yes sure Link to comment Share on other sites More sharing options...
JohnOne Posted January 14, 2012 Share Posted January 14, 2012 I see this is the second question you have had without even trying anything. Lets hop the third time is the charm eh! #include <IE.au3> Local $oIE = _IE_Example("basic") Local $oElements = _IETagNameAllGetCollection($oIE) For $oElement In $oElements If $oElement.tagname = "tag" Then MsgBox(0,0,"Woohoo") Exit EndIf Next AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
guwguw Posted January 14, 2012 Share Posted January 14, 2012 #include <IE.au3> Local $oElements = _IETagNameAllGetCollection($oIE) Local $tagImlookingfor = "whataPain" For $oElement In $oElements If $oElement.tagname = $tagImlookingfor Then MsgBox(0, "Element Info", "Tag " & $tagImlookingfor & ": " & $oElement.tagname & @CR & "contains innerText: " & $oElement.innerText) Else MsgBox(0, "NOT FOUND", "Tagname: " & $oElement.tagname & @CR & "was not found !") EndIf Next Link to comment Share on other sites More sharing options...
saeed88 Posted January 21, 2012 Author Share Posted January 21, 2012 works fine. thanks for your help.. 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