-
Notifications
You must be signed in to change notification settings - Fork 6
Playwright proxies template #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
| import { Browserbase } from "@browserbasehq/sdk"; | ||
| import dotenv from "dotenv"; | ||
|
|
||
| dotenv.config({ path: "../../.env" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a little weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
| waitUntil: "domcontentloaded", | ||
| }); | ||
|
|
||
| // Parse JSON from page body (pure Playwright; no Stagehand). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this meant to be no stagehand? we don't need to mention it then right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
|
|
||
| ## HELPFUL RESOURCES | ||
|
|
||
| 📚 Stagehand Docs: https://docs.stagehand.dev/v3/first-steps/introduction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is only playwright we don't need stagehand docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to have these to show its an option
| "prettier": "^3.2.5", | ||
| "typescript-eslint": "^8.50.1" | ||
| }, | ||
| "packageManager": "pnpm@9.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but not really needed
Summary
What's included
Both templates demonstrate three proxy configurations:
New files:
python/playwright/proxies/
├── .env.example
├── main.py
├── pyproject.toml
└── README.md
typescript/playwright/proxies/
├── index.ts
├── package.json
└── README.md