import type { PointerInput } from '../pointer' ; import { Config , Instance } from '../setup' ; export async function click ( this , element ) { const pointerIn = [ ] ; if ( ! this [ Config ] . skipHover ) { pointerIn . push ( { target : element } ) ; } pointerIn . push ( { keys : '[MouseLeft]' , target : element } ) ; return this . pointer ( pointerIn ) ; } export async function dblClick ( this , element ) { return this . pointer ( [ { target : element } , '[MouseLeft][MouseLeft]' ] ) ; } export async function tripleClick ( this , element ) { return this . pointer ( [ { target : element } , '[MouseLeft][MouseLeft][MouseLeft]' ] ) ; }