JayFran Posted September 15, 2010 Share Posted September 15, 2010 I'm having trouble clicking on the "OK" button inside of an iframe. I cant go by the id of this element becuase its dynamic and I tried to search the tag text but its returning with no errors or actions. I circled the ok button on the attachment. Thank you in adavance for suggestions and help. Link to comment Share on other sites More sharing options...
wakillon Posted September 15, 2010 Share Posted September 15, 2010 I'm having trouble clicking on the "OK" button inside of an iframe. I cant go by the id of this element becuase its dynamic and I tried to search the tag text but its returning with no errors or actions. I circled the ok button on the attachment. Thank you in adavance for suggestions and help.More details will be usefull ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
JayFran Posted September 15, 2010 Author Share Posted September 15, 2010 (edited) More details will be usefull ! I thought I added my attachment. Basically the ok button I want to click on is in an iframe. i would've just coded it thru its element id however its always changing. I tried to do a tagname get and look for the button but its doesnt return nothing. then i tried to get the button thru the innertext and still was unable to get any type of action. the last piece of code i had is: $oFrames = _IEFrameGetCollection ($oIE, 0) $browse = _IETagNameGetCollection($oFrames, "button") For $oBrowse In $browse $b_prop = _IEPropertyGet($oBrowse, "innerhtml") If $b_prop = " OK " Then $hit = $oBrowse _IEAction($oBrowse, "click") Next Edited September 15, 2010 by JayFran 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