jandos Posted June 13, 2012 Share Posted June 13, 2012 (edited) Hi!I'm trying to click on other elements of a list but with no success till now. Any idea? Here is my code:#include <IE.au3>[/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"]$oIE = _IECreate("...")[/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"]$aArray = _IEGetObjByClass($oIE, "carousel_item_wrapper", "li")[/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"]$o = $aArray[2] MsgBox(0, "test", $o.innerText,1 ) _IEAction($o, "click");!!!!!no working[/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"] Func _IEGetObjByClass($oIE, $sClass, $sTag = "*") Local $aRet[1] = [0][/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"] Local $allHTMLTags = _IETagNameGetCollection($oIE, $sTag) For $o In $allHTMLTags If IsString($o.className) And $o.className = $sClass Then $aRet[0] += 1 ReDim $aRet[$aRet[0] + 1] $aRet[$aRet[0]] = $o EndIf Next[/color][/font] [font="helvetica, arial, sans-serif"][color="#282828"] Return $aRet EndFunc ;==>_IEGetObjByClass Edited June 14, 2012 by jandos Link to comment Share on other sites More sharing options...
Decipher Posted June 13, 2012 Share Posted June 13, 2012 When you post please use the post editor to put your code in a codebox. The "A" button on the second row or "<>" for other code. That way it'll have syntax highlighting. jandos 1 Spoiler 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