JayFran Posted September 15, 2010 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.
wakillon Posted September 15, 2010 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.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
JayFran Posted September 15, 2010 Author 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
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