OnetapInc / chromy

Chromy is a library for operating headless chrome. 🍺🍺🍺
MIT License
605 stars 41 forks source link

Double click API #114

Open dccat9 opened 6 years ago

dccat9 commented 6 years ago

Hi,

I am trying to do a double click on an html object and I could not find a proper API in Chromy. Is double click supported?

Thanks, Charlotte

dotneet commented 6 years ago

Hi,

there isn't double click api.

but you can use click api twice for emulating double click as below

.click('button#b1')
.sleep(50)
.click('button#b1')
.end()