Jump to content
Sign in to follow this  
lequithienan

help me click button by ie

Recommended Posts

lequithienan

<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 :(

Share this post


Link to post
Share on other sites
guestscripter

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
  • Like 1

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.