CLICK
Top  Previous  Next


"Clicks" on the element at the specified X/Y coordinates. The zero position (origin) of the coordinate system is in the top left corner of the webpage. The x axis is positive to the right, the y axis is positive downwards. The optional CONTENT attribute can be used to send text to the clicked element (e.g. if the clicked element is an input box).
In contrast to
WINCLICK, CLICK can click on elements of a page although they are not currently displayed in the browser window, i.e. this command does not need scrolling. Also in contrast to WINCLICK, this click can be run in background mode.

Syntax

CLICK X=n Y=m [CONTENT=some_content]


Parameters

X
Specifies the x (horizontal) coordinate of the website element that is to be clicked.

Y
Specifies the y (vertical) coordinate of the website element that is to be clicked.

CONTENT
Specifies the value that is send to the clicked element.


Examples

The following example illustrates that the
CLICK comman can, as opposed to the WINCLICK command, "click" website elements that are not currently displayed in the browser window:

' open a iOpus homepage
URL GOTO=http://www.iopus.com/imacros/demo/v4/f1/form.asp     
' reset size so that the big text box and the submit button are "hidden"
SIZE X=823 Y=300 
' enter Remarks
CLICK X=458 Y=510 CONTENT=Without<SP>apples   
' press submit
CLICK X=358 Y=644 CONTENT=Click<SP>to<SP>order<SP>now   


See Also


TAGWINCLICK



Page URL http://www.iopus.com/imacros/help/cmd_click.htm