Jump to content

help me click button by ie


Recommended Posts

<div class="action-division b-notified">    
                                        <h3></h3>
                                        <div class="ui-right-frame">
                                            <div class="commands-bottom" style="margin-left: 170px;">
                                                <input type="button" title="Apply" class="btn-apply3" value="" name="" onclick="js_ApplyEditShipping()"/>
                                                <span>or</span>
                                                <a title="Cancel" href="javascript:void(0);" onclick="js_CancelApplyEditShipping()">Cancel</a>
                                            </div>

1-6.png

 

i try more but script can't click to that button "Apply" , who can help me :(

Link to comment
Share on other sites

Try this: 

sURL = "http://page.you.are/on/"
$oIE = _IECreate($sURL,1,1);try to attach = on, window is visible = on (for testing purposes)
;maybe this will work:
Local $oInputs = _IETagNameGetCollection($oIE,"input")
For $oInput In $oInputs
If $oInput.className = "btn-apply3" Then _IEAction($oInput, "click")
Next
;otherwise this:
Local $oInputs = _IETagNameGetCollection($oIE,"input")
For $oInput In $oInputs
If $oInput.title = "Apply" Then _IEAction($oInput, "click")
Next
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...