Skip to content

Latest commit

 

History

History

README.md

CDP Connection (TypeScript)

Basic example demonstrating how to connect to a browser using Chrome DevTools Protocol (CDP) with Intuned.

Run on Intuned

Run on Intuned

APIs

API Description
connect-to-cdp Connect to browser via CDP, fetch browser info, navigate to a URL

Getting started

Install dependencies

npm install
# or
yarn

If the intuned CLI is not installed, install it globally:

npm install -g @intuned/cli

After installing dependencies, intuned command should be available in your environment.

Run an API

intuned dev run api connect-to-cdp .parameters/api/connect-to-cdp/default.json

Save project

intuned dev provision

Deploy

intuned dev deploy

Project structure

/
├── api/
│   └── connect-to-cdp.ts         # CDP connection example
├── hooks/
│   └── setupContext.ts           # Captures CDP URL from Intuned runtime
├── utils/
│   └── typesAndSchemas.ts        # Zod schemas and TypeScript types
├── intuned-resources/
│   └── jobs/
│       └── connect-cdp.job.jsonc # Job definition (schedule, payload)
├── .parameters/api/              # Test parameters
├── Intuned.jsonc                  # Project config
├── package.json                   # Node.js dependencies
└── README.md

Related