JS Client
Stoobly JavaScript Client Library - Questions & Answers
Installation and Setup
Q: How do I install the Stoobly JavaScript library?
# Install with npm
npm install stoobly --save-dev
# Install with yarn
yarn add -D stooblyQ: What are the requirements for using the Stoobly JavaScript library?
Q: How do I import the Stoobly library?
Playwright Integration
Q: How do I integrate Stoobly with Playwright tests?
Q: Why do I need to call withPage() and withTestTitle() in Playwright?
withPage() and withTestTitle() in Playwright?Q: How do I record requests in Playwright tests?
Cypress Integration
Q: How do I integrate Stoobly with Cypress tests?
Q: Why must I call apply() in beforeEach for Cypress?
apply() in beforeEach for Cypress?Q: How do I record requests in Cypress tests?
Q: What's the warning about synchronous requests in Cypress?
Configuring URL Patterns
Q: How do I specify which URLs to intercept?
Q: How do I change the intercepted URLs dynamically?
Scenarios and Sessions
Q: How do I specify a scenario for my tests?
Q: How do I change the scenario dynamically?
Q: What is a session ID and how do I use it?
Recording Configuration
Q: What record policies are available?
Q: What's the difference between record orders?
Q: What record strategies are available?
Q: How do I change record settings dynamically?
Controlling Interception
Q: How do I stop recording requests?
Q: How do I completely remove the interceptor?
Q: What's the difference between clear() and clearRecord()?
clear() and clearRecord()?Advanced Configuration
Q: How do I set a custom Stoobly UI URL?
Q: How do I use test titles for request grouping?
Q: Can I use the interceptor without a test framework?
Troubleshooting
Q: Why aren't my requests being intercepted?
Q: How do I debug interceptor issues?
Q: Why do I get "page is not defined" errors in Playwright?
Q: How do I handle TypeScript errors?
Complete Examples
Q: What's a complete Playwright example with recording and mocking?
Q: What's a complete Cypress example with recording and mocking?
Quick Reference
Q: What are the key methods for the interceptor?
Q: What constants are available?
Last updated