Click Element by Selector: Auto-Click Any Element by CSS or XPath After Every Refresh
Auto refresh keeps a page current, but plenty of pages need one specific element clicked every time they load — a "Refresh results" button, a "Load more" link, an "Accept" prompt, or a filter that resets on each reload. If that element has no reliable text, or you need several clicks to happen in a set order, keyword matching is not the right tool. This is exactly what Click element by selector is for.
On the Detect Keyword tab, enable Click element by selector and give it one or more CSS selectors or XPath expressions. After each page load the extension finds those elements and clicks them in order — and it works completely independently of keyword detection, so there does not need to be any keyword involved at all.
Open the Auto Refresh extension and switch to the Detect Keyword tab.
Under the Automatic Clicker area, tick Click element by selector.
Add a target. The easiest way is the built-in picker: click Pick an element on the page, then click the element you want on the live page to capture its selector. (Picking closes the popup so you can interact with the page — reopen the extension afterwards to review what was captured.)
Prefer to type it yourself? Use Edit selectors to enter a CSS selector or an XPath expression by hand.
Add more targets if you need several clicks. They fire top‑to‑bottom, so put them in the order you want them clicked, and use Move up / Move down to reorder.
Click Save. From the next reload on, the extension clicks each target after the page loads.
CSS selector or XPath?
CSS selector is best for most cases — target by id, class, or attribute, for example #refresh-btn, button.load-more, or a[data-action="reload"].
XPath is there for the harder targets CSS cannot express — for instance selecting an element by the text it contains, or walking to a specific position in the structure.
You can even set an XPath fallback on a target, so if the CSS selector stops matching after a site change, the extension still has a second way to find the element.
When you enter a selector, a small match badge tells you whether it currently matches an element, so you can catch “No elements match this selector on the current page” or “Selector syntax is invalid” before you rely on it.
Test before you trust it
Because this runs on every single reload, a wrong selector can click the wrong thing over and over. That is why each target has a Test click now button: it fires exactly one click against your selector on the live page, without touching the refresh state, so you can confirm it hits the right element first. If nothing is set yet you will simply be told to add a CSS or XPath selector before testing. Once a test behaves the way you expect, you can leave the automation running with confidence.
Good things to automate with it
Buttons with no readable label — an icon-only refresh or reload control that keyword matching cannot target.
Repetitive dismissals — a cookie banner, newsletter pop-up, or "Are you still there?" prompt that reappears after each load.
Multi-step sequences — open a panel, then click a confirm button inside it, by listing two selectors in order.
Filters and toggles that reset — a "Newest first" sort or a category filter you want re-applied every time the page comes back.
Click element by selector is the most precise part of the Automatic Clicker: instead of guessing from visible words, it targets an exact element by CSS or XPath and clicks it after every reload. Pick the element with the built-in picker, test it once, put your targets in the right order, and Auto Refresh will handle the clicking for you on every cycle — completely independent of any keyword.