Click Coordinates
Browser NodeClick at specific X/Y positions on the page
Overview
The Click Coordinates node clicks at a specific X and Y position on the page, rather than clicking on a selector-matched element. This is useful for canvas elements, image maps, or situations where traditional selectors don't work.
Use with Caution
X CoordinateHorizontal position in pixels from the left edge of the viewport
500, {{clickX}}Y CoordinateVertical position in pixels from the top edge of the viewport
300, {{clickY}}Mouse ButtonWhich mouse button to click: left, right, or middle
leftModifiersModifier keys to hold while clicking: Shift, Control, Alt, Meta
ShiftWhen to Use
Canvas elements (games, charts, drawing apps) render pixels, not DOM elements. You can't use selectors on them - coordinate clicks are the only option.
Clickable regions on images (like store locators or interactive diagrams) may not have accessible selectors for each region.
Sometimes you need to click a specific part of an element (like a slider track or a color picker gradient) where the exact position matters.
Finding Coordinates
To find the coordinates you need:
- Browser DevTools: Open DevTools (F12), click on the Elements panel, then hover over the page - coordinates show at the bottom of the browser.
- Get Bounding Box Node: Use the Get Bounding Box node on a nearby element to get its position, then calculate your click position relative to it.
- Screenshot + Measure: Take a screenshot, open in an image editor, and measure pixel positions.
Usage Examples
Workflow pattern:
- Get Bounding Box of slider element
- Calculate target X = x + width × 0.75 with Math Operations nodes (one operation each, e.g. Multiply {{$('Get Bounding Box').item.json.boundingBox.width}} by 0.75) → targetX
- Calculate target Y = y + height ÷ 2 the same way → targetY
- Click Coordinates: X = {{targetX}}, Y = {{targetY}}
Tip: Set a consistent viewport size with Set Viewport node to ensure coordinates are reliable.