I am using FormFill to put text into an item on a webpage. I can tell this is kind of working, as the test shows in the box but does so as a light grey just like the "Search Here" default text and when the formsubmit function goes off it does not register that the data is in the box.
Is there something I am doing wrong?
I have tried to search this but formfill is in the default text of webrecorded scripts so I get a lot of results but have not been able to find a search phrase that limits it to relevant results.
IEFormFill
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: IEFormFill
Nothing you are doing wrong. It sounds like the web site is not "accepting" your input. IEFormFill is setting the value of the input field directly. It is doing all it can. But my guess is that this web site is doing something extra with javascript like watching for keystrokes and then processing what is accepted "behind the scenes". Some kind of validation script perhaps. So the end result is that this verification script doesn't "see" the value because there was nothing entered by the keyboard.
So what you may need to do instead is to focus the field. Use SetFocus to focus the IE window, then use IETagEventByAttrib with the "focus" event, or tab into the field. And then use SendText to send the text in. This should then trigger the javascript which is looking for real key entry. I expect this will work.
So what you may need to do instead is to focus the field. Use SetFocus to focus the IE window, then use IETagEventByAttrib with the "focus" event, or tab into the field. And then use SendText to send the text in. This should then trigger the javascript which is looking for real key entry. I expect this will work.
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?
Re: IEFormFill
Worked! Thank you!
Though I wish I didn't have to use this as when using key strokes, I have to have the sk_delay set so high that it almost triples the time it takes to complete one loop. If I speed up the key strokes the site does not register them all and it only takes 2 of every 3 letters. Sigh, I am just complaining.
Though I wish I didn't have to use this as when using key strokes, I have to have the sk_delay set so high that it almost triples the time it takes to complete one loop. If I speed up the key strokes the site does not register them all and it only takes 2 of every 3 letters. Sigh, I am just complaining.
Re: IEFormFill
Is it possible to see an example show the script would look like? I'm having similar issue with a site that is using Telerik controls and it has become a nightmare.
Thanks in advance,
DR
Thanks in advance,
DR
- Dorian (MJT support)
- Automation Wizard
- Posts: 1389
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: IEFormFill
You can see a sample of that here.
To click a field, you'd to this :
Code: Select all
IETagEventByAttrib>https://www.bing.com/,INPUT,ID=sb_form_q,click,
Code: Select all
IETagEventByAttrib>https://www.bing.com/,INPUT,ID=sb_form_q,focus,
Code: Select all
SetFocus>MyWindow*
IETagEventByAttrib>https://www.bing.com/,INPUT,ID=sb_form_q,focus,
Send>TheText
Yes, we have a Custom Scripting Service. Message me or go here