left_button_down
left_button_down($x,$y,$scroll=true); - this function is used to fully emulate a left mouse click at a given point in the browser
The function accepts parameters as input:
$x – x - coordinate of the point where you want to click, 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, it will simply click at the specified point. if true, it 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)