stepwright
Version:
A powerful web scraping library built with Playwright
50 lines • 1.58 kB
TypeScript
import { Page, Locator } from 'playwright';
import { BaseStep } from './types';
import './global-types';
/**
* Execute a step in the context of a specific element.
*
* @param {object} page - The page object.
* @param {object} contextElement - The context element.
* @param {object} step - The step object.
* @param {object} collector - The collector object.
*
* @since v1.0.0
* @author Muhammad Umer Farooq <umer@lablnet.com>
*
* @returns {void} - Nothing.
* @since v1.0.0
* @company Framework Island
*/
export declare function executeStepInContext(page: Page, contextElement: Locator, step: BaseStep, collector: Record<string, any>): Promise<void>;
/**
* Execute a step.
*
* @param {object} page - The page object.
* @param {object} step - The step object.
* @param {object} collector - The collector object.
*
* @since v1.0.0
* @author Muhammad Umer Farooq <umer@lablnet.com>
*
* @returns {void} - Nothing.
* @since v1.0.0
* @company Framework Island
*/
export declare function executeStep(page: Page, step: BaseStep, collector: Record<string, any>): Promise<void>;
/**
* Execute a step list.
*
* @param {object} page - The page object.
* @param {object} steps - The steps object.
* @param {object} collected - The collected object.
*
* @since v1.0.0
* @author Muhammad Umer Farooq <umer@lablnet.com>
*
* @returns {void} - Nothing.
* @since v1.0.0
* @company Framework Island
*/
export declare function executeStepList(page: Page, steps: BaseStep[], collected: Record<string, any>): Promise<void>;
//# sourceMappingURL=step-executor.d.ts.map