Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Double click using Watir?

Tags:

ruby

watir

Seems to not be a supported feature unless you use firewatir?

I've browsed around for it, can't seem to find it anywhere, I came across double_click but that returned an undefined method error in console.

Anyone know how to get around this?

like image 680
samayres1992 Avatar asked Sep 09 '26 06:09

samayres1992


1 Answers

There is a double_click method for elements.

Try:

browser.element.double_click

Note that element does not have to be an element type. It can be a subclass, like a link, span, etc.

Related rdocs: Watir-Classic and Watir-Webdriver

like image 151
Justin Ko Avatar answered Sep 11 '26 19:09

Justin Ko