Are you clicking a link on a webpage? Seems unusual that you'd double-click it, but you could just do it twice:
browser.link(:id, 'id').click browser.link(:id, 'id').click or 2.times do browser.link(:id, 'id').click end Hope that helps. orde On Aug 26, 10:56 pm, "jane.liu" <jane.li...@hotmail.com> wrote: > I am a new watir user, > now I am writing a function,double click a element in the table,it > will jump detail page > > how I can to deal with double click on Element in watir? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---