.click()
FuncUnit.prototype.click
You can pass it any of the serializable parameters you'd send to
click(options [,success])
Clicks an element. This uses [syn.prototype.click] to issue a:
mousedown
focus
- if the element is focusablemouseup
click
For a right click or double click use .rightClick() or .dblclick().
Example
//clicks the bar element
F("#bar").click()
Parameters
-
options
{Object}
Optionaloptions to pass to the click event. Typically, this is clientX/Y or pageX/Y:
$('#foo').click({pageX: 200, pageY: 100});
-
success
{function()}
Optionala callback that runs after the click, but before the next action.
Returns
{funcUnit}
returns the funcunit object for chaining.
initMouseEvent, but command keys are controlled by .type().