Docs/FAQ
#

FAQ

Short answers about setting up and using Cofactor.

Answer my Cofactor questions

How is Cofactor different from Playwright, Cypress or Selenium? You describe a journey in plain language and an agent drives a real browser. Later runs replay what the agent recorded, and the agent repairs a step when your UI changes. Cofactor also runs your existing Playwright suite. See Bring your own suite.

Do I need to code? No. You write tests in plain language or chat with an agent. See End-to-end tests.

What is a sandbox? A live copy of your app with its own database, data and a login for each role. Every test gets its own. See Environments.

Does my app need to be on GitHub? No. You can push a built image from any CI. PR previews need GitHub. See Build from GitHub and Build from a pushed image.

What about email, sign-in and payments? A sandbox can run stand-ins for common outside services, so your app needs no code changes. See Emulators.

How does login work? You declare a user for each role. Cofactor generates their passwords when it builds the sandbox, so none live in your repository. See Seed data and logins.

Will tests break when my UI changes? When an element moves, the agent looks for it again and repairs the step. See Self-healing.

Can I test localhost? Yes. Sync your working files into a sandbox. See Test locally.

How do I run tests in CI? Set COFACTOR_API_TOKEN in your runner and run a suite. The run exits with an error when a test fails. See Release gates.

How do I tell a real bug from a confused agent? Every run keeps each step, screenshot and the agent's reasoning. Cofactor diagnoses failures and files confirmed ones as issues. See Triage.

Can I use my own coding agent? Yes. See the Quickstart.

How is usage measured? In compute and AI credits. Each plan has an allowance. See Plans and limits.

Check it worked

Run these for answers that depend on your setup.

bash
cofactor setup status --json
cofactor sandbox envs --application "Acme App"

Go deeper