Sign in to follow this  
Followers 0
JayFran

Can't click ok button?

3 posts in this topic

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



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.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by JayFran

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0