Hi, Pls hav a look at this
http://raveendran.wordpress.com/2010/06/08/watir-click_no_wait-for-checkbox/ Thanks On Sat, May 22, 2010 at 5:18 AM, cslumension <cslumens...@gmail.com> wrote: > Want to download files, using a click_no_wait method, which works > great the first time it's called, but each sequential call after that > only highlights the item and no Save As box is displayed. There is a > similar issue raised two years ago without a defined conclusion, > > http://groups.google.com/group/watir-general/browse_thread/thread/fb7938775929591b/bb7075ebc5c4ec8f?lnk=gst&q=click_no_wait#bb7075ebc5c4ec8f > > I call the element like so, > ie.link(:href, downloadURL.to_s).click_no_wait > > The element is defined as so, > <a id="download_btn" class="buttonEnable" onmouseout="" onmouseover="" > onclick="MarkDownloadFunction(<some identifier>) href="/path/to/ > zipfile.zip">Download</a> > > the onclick DownloadFunction just sets the class to an enable/disable > button to make it look like the button has been pressed with a new > image from CSS. > > I found another thread about troubleshooting the click_no_wait here, > > http://groups.google.com/group/watir-general/browse_thread/thread/222b2bf7df33644/5d4e4f0890d75b7c?lnk=gst&q=click_no_wait#5d4e4f0890d75b7c > > The patch for 1.6.5 doesn't seem to apply to me since I am using a > different version of Ruby. I tried editing the watir/ > page_container.rb file as explained in the previous thread's link to > Jarmo's post, but the console just sits there. I get no feedback > after running the command generated in the click_no_wait text file. > > Ever better, if I open up google in IRB and call click, click_no_wait > on buttons, they work just fine, every time! Maybe there is something > unique to this website that is stopping click_no_wait somehow, but I > am out of ideas. > > My system, > XP SP2 > Ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] > Watir 1.6.5 > > Thanks for taking the time to read through my post. > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > To post: watir-general@googlegroups.com > To unsubscribe: > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > -- Regards, P.Raveendran http://raveendran.wordpress.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com