Click multiple buttons
axiom.ai gives you several ways to click more than one button in a single automation, depending on whether the buttons share a pattern or you need to repeat the same click many times.
Use the Click multiple elements step
The Click multiple elements step clicks every element matching a selector. Useful for clicking each item in a list.
- Open the step finder and add Click multiple elements.
- Click Select and use the selector tool to choose the elements.
- Set the click action to Left click or Right click.
- Set
Maximum clicksto cap the number of clicks.
This step doesn't support clicking a button, doing some other actions, then clicking the next button. For that pattern, loop through CSS selectors instead.
Loop through CSS selectors
When you need to click a button, perform actions, then move on to the next button, store the buttons' CSS selectors in a Google Sheet and loop through them.
- Create a Google Sheet with one CSS selector per row.
- Add a Read data from a Google Sheet step pointing at the sheet.
- Add a Loop through data step using the
[google-sheet-data]token. - Inside the loop, add a Click element step.
- In the Click element step, click Select, choose Custom, tick Set selector from data, and pick the
[google-sheet-data]token. - Click Complete.
For more on this pattern, see custom CSS selectors.
Repeat a single click with a jump step
To click the same button several times in a row, pair Click element with a Jump to another step or Conditionally jump to another step step.
- Add a Click element step and configure it with the selector tool.
- Add a Jump to another step or Conditionally jump to another step step. Set
Jump to stepto the Click element step. - Set
Maximum cycles(or, for the conditional version, configure the condition).
Click with JavaScript
The Write javascript step gives you full control when the no-code steps don't fit. Two common approaches:
- The native
HTMLElement.click()method. - The Puppeteer integration for more complex interactions.
For starting points, see the JavaScript snippets reference.