Hi Bill,
My Bad luck , After $ff.refresh --> Still the upload video button is not enabled .. :) Awaiting your reply Thanks On Mon, Oct 5, 2009 at 3:04 PM, Bill Agee <billa...@gmail.com> wrote: > Ah, so it's a difference in behavior between FireWatir and Watir? > > Not sure why that would happen. Perhaps setting the field with Firefox > doesn't fire the necessary events to enable the upload button? Don't know. > > You might try invoking the refresh() method on the Firefox object after you > set the field value. I doubt it will help, but you never know. I've had > problems where what is displayed in the browser seems to go out of sync with > FireWatir's view of the DOM (specifically, elements you can see in the page > are not accessible from script). But refreshing the browser usually fixes > it. > > > On Sun, Oct 4, 2009 at 9:00 PM, Raveendran P <jazzezr...@gmail.com> wrote: > >> Hi Bill, >> >> For more details, >> >> >> The same code working in WATIR: >> >> >> $ie.file_field(:name, "field_uploadfile").set($video_files[0]) >> >> $ie.span(:text, 'Upload Video').click >> >> >> Here i can able to click the Upload Video span . Because it is enabled >> after set the file_field path. >> >> But the same code not working in FireWatir for Firefox browser >> >> It means, The "Upload Video" span not enabled automatically after set the >> path like >> >> $ff.file_field(:name, "field_uploadfile").set($video_files[0]) >> >> >> Any more details need ? >> >> >> >> >> >> >> On Sun, Oct 4, 2009 at 8:54 PM, Raveendran P <jazzezr...@gmail.com>wrote: >> >>> Hi Bill, >>> >>> That code sets properly. Its working exactly . But i need alternate way >>> to do this. >>> >>> Because The upload button is not enabled automatically after set the >>> p[ath via like this. >>> >>> >>> For more details >>> >>> 1. Login youtube. >>> 2. Uninstall Fal;sh player in your machine >>> 3. Goto upload video page. >>> 4. Set the path like this >>> >>> $ie.file_field( :name, "document" ).set( "c:\\Watir >>> Testware\\Data\\vb.txt" ) >>> >>> 5. Still the upload button disabled. >>> >>> >>> Thats why i am asking the alternate way to do this. >>> >>> Awaiting your reply >>> >>> Thanks >>> >>> >>> On Sun, Oct 4, 2009 at 2:55 AM, Bill Agee <billa...@gmail.com> wrote: >>> >>>> What browser version are you using? Also, is the path to the file being >>>> set properly in the dialog? >>>> >>>> Thanks >>>> Bill >>>> >>>> >>>> >>>> On Sat, Oct 3, 2009 at 4:28 AM, Raveendran P <jazzezr...@gmail.com>wrote: >>>> >>>>> Hi All, >>>>> >>>>> Any alternate method for this code >>>>> >>>>> $ie.file_field( :name, "document" ).set( "c:\\Watir >>>>> Testware\\Data\\vb.txt" ) >>>>> >>>>> >>>>> I need alternate for this code ... >>>>> >>>>> Reason : >>>>> >>>>> After did the above line the Upload button is not enabled >>>>> automatically. But it happens when i select files manually >>>>> >>>>> >>>>> >>>>> Thanks in Advance >>>>> >>>>> -- >>>>> Regards, >>>>> P.Raveendran >>>>> http://raveendran.wordpress.com >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Regards, >>> P.Raveendran >>> http://raveendran.wordpress.com >>> >>> >> >> >> -- >> Regards, >> P.Raveendran >> http://raveendran.wordpress.com >> >> >> >> > > > > -- Regards, P.Raveendran http://raveendran.wordpress.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---