====== ClickElement ======
Scrolls the page to the specified element, emulates mouse cursor movement to specified coordinates and clicks.
===== Syntax =====
function ClickElement(aElement: TCSElement; aX: integer = 0; aY: integer = 0;
aScrollMethod: TCSScrollMethod = SM_WHEEL): boolean;
==== Parameters ====
* **//aElement//**
* //type:// [[en:wascript:pascal:records:tcselement|TCSElement]]
* //functions:// element to be clicked
* **//aX//**
* //type:// integer
* //functions:// X coordinate of the click relative to the upper left corner of element
* **//aY//**
* //type:// integer
* //functions:// Y coordinate of the click relative to the upper left corner of element
* **//aScrollMethod//**
* //type:// [[en:wascript:pascal:enums:tcsscrollmethod|TCSScrollMethod]]
* //functions:// scrolling method
==== Returned value ====
* //type:// boolean
* //functions:// a flag indicating whether the click was made
===== Notes =====
* Click will be made only on the element of the non-zero size
* If aX and aY equal zero, then a random point of the rectangle containing the element will be selected
===== Examples =====
-LoadURI('google.ru');
TypeIn('test');
var Search:=GetElement('button',0,['name'],['btnG']);
ClickElement(Search,0,0,SM_SCROLLBAR);
{{ :wascript_clickelement_1.gif }}