Try pre-set campaigns and get your first conversions within 15 minutes.
Mailocator / Triggers 2026-01-09 16:08:25

How to get a CSS selector using the browser inspector

Open the page where you want to select an element (button, link, image, etc.).

Right-click on the element.

Select "Inspect" – the developer panel will open.

Find the element in HTML

The HTML code for the element you clicked on will be highlighted in the open panel.

Make sure that the correct element is selected (it should also be highlighted on the page).

Copy the CSS selector

Right-click on the highlighted line in HTML.

Select Copy → Copy selector.

The names of this option may vary slightly depending on the browser:

  • Google Chrome: Copy → Copy selector
  • Safari: Copy Selector Path
  • Firefox: Copy → CSS Selector

The selector will be saved to the clipboard.

Tips for better accuracy

Prefer selectors that contain a unique class or ID.

If the selector is too long (many levels), try manually shortening the part that is not necessary.

Always check that the application finds the element correctly after inserting the selector.