JayFran 0 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. Share this post Link to post Share on other sites
wakillon 403 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 Share this post Link to post Share on other sites
JayFran 0 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 Share this post Link to post Share on other sites