clickAt(locator, coordString) - Selenium IDE command

clickAt has a locator and "coordString", which specifies the x,y position (i.e. 10,20) of the mouse event inside the element returned by the locator.

ClickAt becomes useful for clicks inside some more complex elements, e. g. to draw on a canvas like in the screenshot below:

Click inside a canvas element with clickAt

By default, the Selenium IDE records click commands. To record clickAT commands, change the recording mode in settings > recording tab.

Click inside a canvas element with clickAt

ClickAt is very useful for visual UI testing and it can be combined with elementFromPoint to visually find and click a specific location inside a canvas element.

clickAt Example

Command Target Pattern/Text
open https://a9t9.com/
clickAt css=.... 10,20

Works in

Kantu for Chrome Selenium IDE, Kantu for Firefox Selenium IDE, Firefox IDE Classic

The outdated clickAtAndWait command is not supported in the new IDE, as it is not needed. The same effect can be achieved combining ClickAt with waitForPageToLoad.

Related Demo Macros

Demo-Autofill, Demo-Frame

The ready-to-import-and-run source code of all demo macros can be found in the Github repository testmacros folder.

See also

click, Web Automation Extension User Manual, Selenium IDE commands, Classic Firefox Selenium IDE.

Anything wrong or missing on this page? Suggestions?

...then please contact us.

Kantu Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the a9t9 automation software newsletter . We'll send you updates on new releases that we're working on.