Jump to content

Recommended Posts

Posted

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 !!!!!

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...