Skip to main content

crawler

@codebolt/codeboltjs


Variable: crawler

const crawler: {
click: (id: string) => Promise<any>;
goToPage: (url: string) => void;
screenshot: () => void;
scroll: (direction: string) => void;
start: () => void;
};

Defined in: packages/codeboltjs/src/modules/crawler.ts:6

A module for controlling a web crawler through WebSocket messages.

Type Declaration

NameTypeDescriptionDefined in
click()(id: string) => Promise<any>Simulates a click event on an element with the specified ID.packages/codeboltjs/src/modules/crawler.ts:52
goToPage()(url: string) => voidDirects the crawler to navigate to a specified URL.packages/codeboltjs/src/modules/crawler.ts:29
screenshot()() => voidTakes a screenshot using the crawler.packages/codeboltjs/src/modules/crawler.ts:19
scroll()(direction: string) => voidScrolls the crawler in a specified direction.packages/codeboltjs/src/modules/crawler.ts:40
start()() => voidStarts the crawler.packages/codeboltjs/src/modules/crawler.ts:10