Website does not save data input from Formfill

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
yenprice
Newbie
Posts: 10
Joined: Wed Oct 01, 2008 6:33 am
Contact:

Website does not save data input from Formfill

Post by yenprice » Sun Nov 09, 2008 7:03 pm

Hello,
I used WebRecorder and MS to write a small script that read data from an excel file, than input the data into a form on a webiste (I don't know if this form is Java, html, or whatever). If I use the tab, then send>info, the website will save my form. But if I use fillForm, the website will not save my form. I just wonder why the website refuse to save the data, and is there any way around it (I don't like to use tab and send> because it is slow)

Thank you.

Yen
Yen N Price

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Nov 10, 2008 3:30 am

I am not clear on what works and what does not work. What do you mean when you say "use fillForm" works? Do you have 2 different scripts, one using Send> and one using fillForm?

Please provide the scripts that you are using and explain the good from the bad.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

yenprice
Newbie
Posts: 10
Joined: Wed Oct 01, 2008 6:33 am
Contact:

Post by yenprice » Mon Nov 10, 2008 3:53 am

OK, let me clear that up: I wrote 2 different scripts,

One script is just tab, then send> then, tab to another field. This method works, meaning the web save the data and I can retrieve the data from the web later on. Here is the example
MouseMove>x,y
Lclick
wait>.5
send>%Subject1[address]%
wait>.5
press tab
wait>0.5
send>%Subject1[City]%


Another script, I use a different method, formFill finction. The second method did fill the form because I can see the data on the screen, but the website could not save the data. If I log out of the form, then come back later, all data will not be there. Here is the example:

Let>FrameName={"main"}
Let>FormName={"BPOForm"}
Let>FieldName={"SubjectAddress"}
Let>FieldValue=%Subject1[address]%
IE_FormFill>%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0,r

Let>FrameName={"main"}
Let>FormName={"BPOForm"}
Let>FieldName={"SubjectCity"}
Let>FieldValue=%Subject1[city]%
IE_FormFill>%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0,r


I used the fillForm code for several websites, and they work fine - the form can be save and data can be retrieved later. However, there are 3 other websites does not support the formFill method. When I run the script on one of these websites, the data appears at the right places on the form, but when I hit the Save button, the website informs me that there is no data to be save. If I log out of the form and come back later, all the data will disappears.

If the second method (formFill) works, I would love to use it because it is easier to code for the website, and the code is reusable. But at this point, I have to settle down for the first method (tab).

I would like to know why the formFill does not work on these websites, and if there is any work around it.

Thank you for any responses

Yen
Yen N Price

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