Sign in to follow this  
Followers 0
lequithienan

help me click button by ie

4 posts in this topic

<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



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
1 person likes this

Share this post


Link to post
Share on other sites

thanks it's working now :D

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