Jump to content

Click on INPUT field (send results) that IS NOT part of FORM


sharkys
 Share

Recommended Posts

Guys, I spent already two days on help file for IE.AU3 and also on searching of this forum, however I did not find what I need.

I`m not able to send CLICK action to INPUT field, that IS NOT part of form... however already another form is present on the same page.

_IETagNameGetCollection is automatically focusing on this FORM ellements ignoring everything else outside it.

I`m really confused, I will really appreciate advice from "gurus"....please

$oIE = _IEAttach ("Expertise Management | Add")
$oInputs = _IETagNameGetCollection($oIE, "input")
For $oInput In $oInputs
If $oInput.type = "submit" Then
_IEAction($oInput, "click")
EndIf
Next

Results from DebugBar

<DIV><SPAN class=tskval style="FLOAT: right"><SPAN class=button-blue>
<INPUT onkeypress="addBulkSkillmaps('IMAP/POP3 Protocol ','normal','English')" type=button value="Add selected skill(s)" cM1="1" cM2="12" cM3></SPAN></SPAN> </DIV>

Code from HTML editor ;-)

<div>
  <span style="float: right;" class="tskval"><span
 class="button-blue"><input
 onkeypress="addBulkSkillmaps('IMAP/POP3 Prot','normal','English')"
 onclick="addBulkSkillmaps('IMAP/POP3 Prot','normal','English')"
 value="Add selected skill(s)" type="button"></span></span></div>
Edited by sharkys
Link to comment
Share on other sites

Ufff...finally I found solution....

$oInputs = _IETagNameGetCollection($oIE, "input")
For $oInput In $oInputs
If string($oInput.value) = "Add selected skill(s)" Then
_IEAction($oInput, "click")
; exit because there are two...
Exit
EndIf
Next
Link to comment
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
 Share

  • Recently Browsing   0 members

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