• function

click

 

Clicks an element by triggering a mousedown, mouseup, and a click event.

Example

Syn.click({},'create',function(){
  //check something
})
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:

Syn.click(
    {clientX: 20, clientY: 100},
    'create',
    function(){
      //check something
    })
You can also provide pageX and pageY and Syn will convert it for you.