Clicks an element by triggering a mousedown, mouseup, and a click event.
Syn.click({},'create',function(){ //check something })
Syn.click( {clientX: 20, clientY: 100}, 'create', function(){ //check something })
syn.click(options, element, callback, force) -> undefined
{Object}
{HTMLElement}
{Function}
{}
{undefined}
Clicks an element by triggering a mousedown, mouseup, and a click event.
Example
You can also provide the coordinates of the click.If jQuery is present, it will set clientX and clientY for you. Here's how to set it yourself: You can also provide pageX and pageY and Syn will convert it for you.