[Wtr-general] [Firewatir] Fireevent not working

jhun forum-watir-users at openqa.org
Sat Jun 9 03:11:35 EDT 2007


Can you please help me. I have this code:

lis = $browser.elements_by_xpath("//li");
lis.each do |li|
   $logger.log("value: " + li.id);
   if (li.id == d.id[4..10])
      $logger.log("FOUND!!!");
      li.fireevent("ondblclick");
      break;
   end
end

It seems that the event ondblclick is not working. I tried searching on the net just to find an example or any implementation of the fireevent in firewatir but sad to say didnt find any. I hope you could help me with my problem. Thanks a lot!!!


More information about the Wtr-general mailing list