Annonyreeder Posted June 3, 2013 Posted June 3, 2013 Hello, im trying to click the following butten "<input class="submit" type="submit" value="Commit"/>" However as you can see there is no name or ID, I have tried using the following to no avail Local $oBtns = _IETagNameGetCollection($o_frame2, "submit") For $oBtn In $oBtns If ($oBtn.ClassName) = "submit" Then _IEAction($oBtn, "Focus") _IEAction($oBtn, "click") EndIf Next I have tried changing the code slightly, I have tried .Class and .Classname and .Type .Value, Ive tried using Linkgetcollection/TagGetcollection, Any ideas? Thanks in advance Ant.
mikell Posted June 3, 2013 Posted June 3, 2013 You have to check the inputs Local $oBtns = _IETagNameGetCollection($o_frame2, "input") For $oBtn In $oBtns If $oBtn.type = "submit" Then _IEAction($oBtn, "Focus") _IEAction($oBtn, "click") Exitloop EndIf Next
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