click
click($x,$y,$scroll=true); - this function is used to fully emulate a left-click at a given point in the browser
The function accepts parameters as input:
$x – x - coordinate of the point where the click should be made, relative to the upper-left corner of the browser. (int)
$y – y - coordinate of the point where the click should be made, relative to the upper-left corner of the browser. (int)
$scroll – whether to scroll the browser to the specified point. If false, the user will simply click at the specified point. if true, the user will automatically scroll to the specified point (boolean).
If the coordinates are empty, the click is made at the current point.
After testing, the function returns the result of its work to the script :
true – successfully clicked at the specified point(boolean)false – operation failed (boolean)