feat(actions): add typeText, pressKey, fix playwright screenshot/waitFor

This commit is contained in:
Gergő Móricz
2024-09-20 21:02:53 +02:00
parent 01f42b980d
commit 3dd912ec91
5 changed files with 50 additions and 12 deletions
+7 -1
View File
@@ -93,7 +93,13 @@ export type Action = {
} | {
type: "screenshot",
fullPage?: boolean,
};
} | {
type: "typeText",
text: string,
} | {
type: "pressKey",
key: string,
};;
export interface ScrapeParams<LLMSchema extends zt.ZodSchema = any, ActionsSchema extends (Action[] | undefined) = undefined> extends CrawlScrapeOptions {
extract?: {