Page 1 of 1
File Upload with WINCLICK - Enabling Next button
Posted: Fri Jun 01, 2007 11:22 am
My problem is with file upload using WINCLICK. Once a file path is entered in the file field, the Next button changes from disabled to enabled and I can click it to continue to the next screen.
With my macro, I can get the file path to enter in the file field but for some reason, the "Next" button is not being enabled when I do this. Once the macro stops, the button is then enabled!
Any ideas what I'm doing wrong?
Apologies but it's an internal site and I can't send the link.
Posted: Thu Jun 07, 2007 11:23 am
This is still an issue fo me. Is there something with scripting that can be causing this?
Posted: Tue Jun 12, 2007 4:33 pm
Any ideas at all on how to resolve this? Any comments at all would be brilliant. If you need me to clarify my request, then please ask.
Posted: Wed Jun 20, 2007 11:37 pm
Just a thought. have you tried inserting a WAIT statement in various stages of the macro? In particular, after the WINCLICK statement?
Click outside the textbox
Posted: Thu Jun 21, 2007 12:33 am
Try clicking anywhere outside the textbox, after filling it with the path. Hope this helps thanks!
Posted: Thu Jun 21, 2007 8:29 am
Thanks for the replies. I managed to get in touch with the engineer who created the page and it turns out there was a very handy revalidate() function available. So all I had to do was enter text into all the fields and run revalidate(). Button enabled!
My own personal experience is that if there's any JS function available that handle validation then they should be used ahead of WINCLICK. It means that you don't risk breaking your macro if the UI changes.
Posted: Thu Jun 21, 2007 1:42 pm
Thanks, thats handy information.
Posted: Thu Jun 21, 2007 7:21 pm
and run revalidate()
How did you do this?
Posted: Wed Sep 12, 2007 9:11 am
Revalidate() is a custom function that is available on our internal application. I wasn't aware of it until I mailed one of the engineers. Calling this function enabled the Next button for me. I guess you could just call any validation js function as well after entered the details into the test box.
Hope that helped some.