Click multiple

axiom.clickMultiple(select) clicks every element that matches a CSS selector, up to a cap. The same step type as the No-Code Tool's Click multiple elements, called from your code.

Signature


await axiom.clickMultiple(select, leftClickRightClick, maxClicks);
ParameterTypeRequiredDefaultDescription
selectstringYesCSS selector matching the elements to click.
leftClickRightClickstringNo"left""left" or "right".
maxClicksnumberNounlimitedCap on how many elements to click. Use this to bound runtime on pages that match more elements than you want to act on.

Example


Expand every collapsed section on a page (up to 20):

await axiom.clickMultiple(".section-header.collapsed", "left", 20);

Notes


  • Elements are clicked in document order.
  • Hidden, zero-size, or disabled elements throw — there's no "skip if not clickable" mode on this method. For a defensive pass, loop on axiom.click() with optionalClick: true instead.
  • For per-element work (read state, decide whether to click, click), drive the loop in your own code with axiom.click() rather than clickMultiple.