Hi,
I've used Webrecorder to create a script to complete a webform. When running this script, it doesn't select any values in the form. I think the problem is that in this particular site, the various options in the form do not have any FieldValues admitted to them.
Like, this is part of the source of the webform:
1
2
3
4
5
6
7
8
9
10
11
12
And Webrecorder gives me this:
Let>FrameName={""}
Let>FormName={""}
Let>FieldName={"month"}
Let>FieldValue={"1"}
LibFunc>hIE,FormFill,r,%IE[1]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0
Let>FrameName={""}
Let>FormName={""}
Let>FieldName={"month"}
Let>FieldValue={"2"}
LibFunc>hIE,FormFill,r,%IE[1]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0
Let>FrameName={""}
Let>FormName={""}
Let>FieldName={"month"}
Let>FieldValue={"3"}
LibFunc>hIE,FormFill,r,%IE[1]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0
Let>FrameName={""}
Let>FormName={""}
Let>FieldName={"month"}
Let>FieldValue={"4"}
LibFunc>hIE,FormFill,r,%IE[1]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0
Let>FrameName={""}
Let>FormName={""}
Let>FieldName={"month"}
Let>FieldValue={"5"}
LibFunc>hIE,FormFill,r,%IE[1]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0
...and so on, with all the months (up til 12) included. So it just kinda 'records' all the options, but doesn't select any of them. Might be easy to overcome, but I don't have a clue how... can anybody help? Thanks!
webforms: how to select value without fieldvalue?
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
This is a known issue. At present WebRecorder can only detect and set field values if the fields have .. values ... Value attributes are required in order to be able to set them. We are looking to see if we can find a solution for this. In the mean time the workaround is to send keystrokes to the page to select the required value.
This is a known issue. At present WebRecorder can only detect and set field values if the fields have .. values ... Value attributes are required in order to be able to set them. We are looking to see if we can find a solution for this. In the mean time the workaround is to send keystrokes to the page to select the required value.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?