Jump to content

Can't click ok button?


JayFran
 Share

Recommended Posts

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

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...