Limited Time — Lifetime Access for just $99. Lock in before prices rise.

UScraper
Back to block reference

Conditions

Element Exists block

Branches based on whether an element exists in the DOM.

Trustpilot (Imported)Status: draft
RunSavePreview Commands
process

Element Exists

Branch based on whether an element exists.

Configure Block: element-exists

Set up the parameters for this element exists block.

ConfigurationGeneral

Element Selector

.error-message, #success
Element Exists -> true: Click -> Wait for Element, false: Wait for ElementSave Configuration

Purpose

Use Element Exists to handle optional UI such as cookie banners, modals, no-results cards, or alternate layouts.

How it works

  • Checks immediately for a matching selector.
  • Routes execution through the true connector when found.
  • Routes execution through the false connector when not found.

Configuration fields

FieldRequiredDefaultDescription
Element SelectorYes-CSS selector or XPath to check.

Output

Boolean branch: true or false.

Usage notes

  • Use after an appropriate wait if the optional element appears late.
  • Existence does not mean the element is visible or clickable.
  • Use Element Visible when display state matters.
FAQ

Frequently asked questions

Here are some of our most common questions. Can't find what you're looking for?

View All FAQs

Stop writing scripts. Start scraping visually.

Download UScraper and build your first web scraper in under 10 minutes. No subscriptions, no code, no limits.

Available on Windows 10+ and macOS 12+ · Need help? [email protected]