Sign in to follow this  
Followers 0
LurchMan

IE Help

2 posts in this topic

Hello All - 

I'm working on building an automated stress test for a new internal website for the company I work for.  Currently I'm having issues with a form thats located on the internal website.  The button I'm attempting to interact with is this:

<input class="buttonOne submit" type="submit" value="Click Me" title="Click Me" />

I can get the form to fill in properly and every appears correct, however when I use:

_IEFormSubmit ($oForm)

The form resets and it doesn't submit.  Does anyone have any ideas on this?


Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Share this post


Link to post
Share on other sites



Use _IETagNameGetCollection to be able to get the handle of that input.

Something like this i suppose:

Local $oInputs = _IETagNameGetCollection($oIE, "input")
Local $hButton
For $oInput In $oInputs
    If $oInput.class = "buttonOne submit" And $oInput.type = "submit" And $oInput.value = "Click Me" Then
  $oInput = $hButton
 EndIf
Next
;click it

Play with it and you will make it work

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