[wtr-general] Re: Test Hangs when choose file window opened
On Tue, Mar 24, 2009 at 09:44, nagmani vm nagman...@gmail.com wrote: It opens the choose file dialog and hangs my system Where did you find that file upload code? Looks like a mess to me. Try this: ie.file_field(:name,uploadFile).set('C:\Documents and Settings\9020\Desktop\A Report On.doc) If that does not work, rename A Report On.doc to AReportOn.doc, put it to c:\ and try this (I think spaces in path or file name could cause problems): ie.file_field(:name,uploadFile).set('C:\AReportOn.doc) Let me know if nothing of the above works. Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Test Hangs when choose file window opened
Hi I got the previous code from old posts regarding upload file I have tried with this still its not working same thing it hangs when choose file window opened.I have placed it in C:\ and tried also as well i renamed the file name as AReportOn. code i used is: ie.button(:name,manageSuppInfoBtn).click ie.file_field(:name,uploadFile).click#It clicks on Browse button and opens choose file window ie.file_field(:name,uploadFile).set(C:\AReportOn.doc) On Mar 24, 1:54 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Mar 24, 2009 at 09:44, nagmani vm nagman...@gmail.com wrote: It opens the choose file dialog and hangs my system Where did you find that file upload code? Looks like a mess to me. Try this: ie.file_field(:name,uploadFile).set('C:\Documents and Settings\9020\Desktop\A Report On.doc) If that does not work, rename A Report On.doc to AReportOn.doc, put it to c:\ and try this (I think spaces in path or file name could cause problems): ie.file_field(:name,uploadFile).set('C:\AReportOn.doc) Let me know if nothing of the above works. Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Test Hangs when choose file window opened
OK Thanks for your quick response On Mar 24, 4:08 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Mar 24, 2009 at 12:02, Shweta nagman...@gmail.com wrote: Thanks.Its working fine but the choose file window is defaulting to Desktop how to set to C:\ drive I have also noticed that file upload hangs sometimes when you upload from other directory. The workaround that I use is to run the tests, when file upload hangs, I select the file by hand and then it works from that moment on. Also, you can use any other folder, not only c:\, but I wanted to make sure that spaces in path are not causing the problem. Željko --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---