Jump to content

Firefox Web Form Fill in


Recommended Posts

I have a program that opens Firefox and prints out web submitted order tickets... here is the issue I am having, I right now have it set to tab to the input field then type the job number then tab and press space (searching for the exact ticket I need to print)

What I want to do is just fill the field out and submit so I can make this faster (tabbing 27 times is time consuming.

Here is the html code I have for the field and submit button

<td style="vertical-align: middle; white-space: nowrap;">
<input id="ctl00_ctl00_C_M_DSF_DataGridJobs_ctl02_OperatorViewHeader_TextBoxFilter" class="formFields" type="text" style="width: 105px;" name="ctl00$ctl00$C$M$DSF$DataGridJobs$ctl02$OperatorViewHeader$TextBoxFilter"/>
<img height="1" width="4" src="images/fill/1x1.gif" alt=""/>
<input id="ctl00_ctl00_C_M_DSF_DataGridJobs_ctl02_OperatorViewHeader_ButtonFilter" align="bottom" type="image" style="border-width: 0px; height: 19px; width: 22px;" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$C$M$DSF$DataGridJobs$ctl02$OperatorViewHeader$ButtonFilter", "", true, "", "", false, false))" src="../images/btn/DSF_Btn_Search.gif" name="ctl00$ctl00$C$M$DSF$DataGridJobs$ctl02$OperatorViewHeader$ButtonFilter"/>
</td>

Thanks again,

Eagle4life69

Link to comment
Share on other sites

With this UDF:

http://www.autoitscript.com/forum/index.php?showtopic=95595

You can do the following:

#include <FF.au3>

If _FFConnect() Then
  ; fill the input
  _FFSetValueById("ctl00_ctl00_C_M_DSF_DataGridJobs_ctl02_OperatorViewHeader_TextBoxFilter", $JobNumber)
  ; click on the submit button
  _FFClick("ctl00_ctl00_C_M_DSF_DataGridJobs_ctl02_OperatorViewHeader_ButtonFilter", "id")
EndIf
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...