FormFill behaving strangely

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
davidwms
Junior Coder
Posts: 23
Joined: Wed Aug 26, 2009 6:18 pm
Location: Madison, AL
Contact:

FormFill behaving strangely

Post by davidwms » Thu Aug 19, 2010 4:31 pm

I wrote a script to update account types on a secure site. I use LibFunc>hIE,FormFill to select a value from a drop down list. There are a number of accounts on each web page that need to be updated. If I use the value rather than the index it will work for the first field (eg. acctType_98736253) but the next field (acctType_73652098) still updates the first field again with the second account number’s account type. If I use the #INDEX#:nPos format it updates the correct field but the list is slightly different in each drop down list so I would have to search the html to determine the index for every single field. The following code changes the first drop down field 5 times.

Code: Select all

Let>FrameName={""}
Let>FormName={"mainform"}
Let>acnt=acctType_%CrntAcnt%
LibFunc>hIE,FormFill,r,%IE[2]%,str:FrameName,str:FormName,acctType_952022652, Joint,0
wait>.2
LibFunc>hIE,FormFill,r,%IE[2]%,str:FrameName,str:FormName,acctType_952930901,SEP IRA,0
wait>.2
LibFunc>hIE,FormFill,r,%IE[2]%,str:FrameName,str:FormName,acctType_07504300234,Single(K),0
wait>.2
LibFunc>hIE,FormFill,r,%IE[2]%,str:FrameName,str:FormName,acctType_07505100283,Single(K),0
wait>.2
LibFunc>hIE,FormFill,r,%IE[2]%,str:FrameName,str:FormName,acctType_07505500514,Single(K),0
wait>.2
The following is part of the HTML code of the page identifying a drop down list.

Code: Select all

<td><SELECT>
<OPTION>
<OPTION>401(k)
<OPTION>401(k) Safe Harbor Plan
<OPTION>403(b)
<OPTION>529 Educational Plan
<OPTION>Educational IRA
<OPTION>Individual
<OPTION>Joint
<OPTION>Joint Tenants Wros
<OPTION>SEP IRA
<OPTION>Single(K)
<OPTION>Variable Annuity IRA
</SELECT>
</td>
So, is there a bug in the FormFill dll or I am overlooking something I am doing wrong?

David

[/code]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts