Jump to content

Recommended Posts

Posted

Hello again :D

I need to click this Submit button, but it's in a lightbox and has no ID (i think) and I can't figure out a way to target it. _IEFormSubmit doesn't work.

image.thumb.png.774f870495e5679b71a5f91a0c21731d.png

 

Thank you

Posted

This is what I have so far..

Func DeleteCourse()
;~ Click the checkbox located beside the course that has been found.
    Local $CheckBox = _IEGetObjByName($oIE, "ckbox")
    _IEAction($CheckBox, "click")
    _IELoadWait($oIE)

;~ Click the Delete button.
    _IELinkGetCollection($oIE)
    Local $oLinks = _IELinkGetCollection($oIE)
    For $oLink In $oLinks
        If $oLink.href = "javascript:validateRemove();" Then
            _IEAction($oLink, "click")
            ExitLoop
        EndIf
    Next

;~  Click the "Delete course, including all of its files" radio button.
    Local $RadioButton = _IEGetObjById($oIE, "removeAllFiles_t")
    _IEAction($RadioButton, "click")
    _IELoadWait($oIE)

;~ Click the "Submit" button
    _IEFormSubmit($oIE)

EndFunc   ;==>DeleteCourse

 

 

Posted
12 minutes ago, Danp2 said:

It has a name, so theoretically _IEGetObjByName should work. Having said that, you probably need to deal with the frame used by lightbox.

Yeah that worked :doh:

I could've sworn I tried that already.

Thank you!

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
×
×
  • Create New...