Skip to main content

Using Claude Code, Cursor, or another coding agent? Paste this into your prompt to run cross-browser and real-device tests, debug sessions, and wire up CI on the TestMu AI cloud:
URL assertions check values in the browser’s address bar: the current URL path, query parameters, fragments, and redirect targets.

When It’s Used

  • URL path: “URL contains /checkout”
  • Query parameters: “URL has param sort=price
  • Redirect verification: “redirected to /login”
  • Fragment/hash: “URL hash is #section-2”

Examples

Assertions

Extractions

If/Else

How It Works

  1. KaneAI reads the current page.url value directly
  2. The URL string is compared against the expected value using the specified operator
  3. No screenshot or DOM analysis needed, this is a direct read