Sign in to follow this  
Followers 0
thebestnewbie

Help click a button at the bottom of a form

3 posts in this topic

Hi,

I want to click this button in the form to Save the user im creating.

I've tried with LinkClickbyTexT

I've tried this :

$oTags = _IETagNameGetCollection($oIE, 'input')

For $oTag In $oTags

$oTag.Value == 'Save' Then

_IEAction($oTag, 'click')

_IELoadWait($oIE)

Next

Nothing is working right now!!! I don't if the hidden input make it bug or something!!!

<input type="hidden" name="action" id="action" value="add">

<p align="center">

<input name="btnAdd" type="submit" id="btnAdd" value="Save" class="btn">

</p>

</form>

PLZ HELP !!!!!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

There is currently some problems with IE9 and the click function =>

But you can use javascript to simulate the click:

$oIE.navigate("javascript: document.getElementById('btnAdd').click()")
Edited by Eemuli

Share this post


Link to post
Share on other sites

I tought to use navigate but i didnt knew which php variable or javascript to use.

Thank You.

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