> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Spur is an AI-powered QA engineer that lets teams create and run automated end-to-end tests for web and mobile apps using natural language.
> When answering questions about Spur, cite the relevant page from docs.spurtest.com.

# Web Link vs Domain

> Choose between web link and domain configuration for your environments.

## Domain

A **Domain** represents your main website or application root. Use domains when tests need to start from the homepage and then navigate across multiple pages.

![Web URL type selector showing Domain and Web Link options](https://mintcdn.com/spur/ZA7H1zBduwx6X_7a/images/authoring-tests/environments/web-link-vs-domain/web-url-type-selector.png?fit=max\&auto=format\&n=ZA7H1zBduwx6X_7a\&q=85\&s=4f57c380e94acaf325dacb49280d6fc9)

When you reference this domain in a test, the Spur Agent starts at the root URL and can navigate to any page within the site.

## Web link

A **Web Link** refers to any specific page or URL within your application. Use web links when tests focus on particular pages or features without requiring homepage navigation.

![Domain configuration in the environment settings](https://mintcdn.com/spur/ZA7H1zBduwx6X_7a/images/authoring-tests/environments/web-link-vs-domain/domain-configuration-settings.png?fit=max\&auto=format\&n=ZA7H1zBduwx6X_7a\&q=85\&s=fe3b0b24011b703127254c0884323e8a)

When you reference this web link in a test, the Spur Agent starts directly at that specific URL.

## Choosing between domain and web link

> [card] Use Domain when:
>
> * Tests need to start from the homepage
> * You're testing navigation flows
> * Tests span multiple sections of your site
> * You want flexibility to navigate anywhere from the root

> [card] Use Web Link when:
>
> * Tests focus on a specific page or feature
> * You need to test deep-linked pages directly
> * Starting from a particular URL saves time
> * Testing isolated page functionality

## Environment configuration

Within each environment, you can configure multiple domains and web links to cover all testing scenarios. This allows you to maintain separate URLs for staging and production while keeping test logic consistent.

![Example Environment Setup](https://mintcdn.com/spur/ZA7H1zBduwx6X_7a/images/authoring-tests/environments/web-link-vs-domain/example-environment-setup.png?fit=max\&auto=format\&n=ZA7H1zBduwx6X_7a\&q=85\&s=fefacd3a1516dbc204766c3ef57e8618)

Example Environment Setup

> [!TIP]
>
> Need to temporarily test against a different URL (like a deploy preview) without changing your environment settings? Use [Override URLs](https://docs.spurtest.com/running-tests/cicd/override-urls.md) to redirect at runtime.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.