projecte_ionic/node_modules/blocking-proxy/built/lib/highlight_delay_barrier.d.ts
2022-02-09 18:30:03 +01:00

19 lines
843 B
TypeScript
Executable file

import { SimpleWebDriverClient } from './simple_webdriver_client';
import { WebDriverCommand } from './webdriver_commands';
import { WebDriverBarrier } from './webdriver_proxy';
/**
* A barrier that delays forwarding WebDriver commands that can affect the app (ie, clicks or
* sending text) for a fixed amount of time. During the delay, the element that's the target
* of the command will be highlighted by drawing a transparent div on top of it.
*/
export declare class HighlightDelayBarrier implements WebDriverBarrier {
private client;
delay: number;
constructor(client: SimpleWebDriverClient, delay: number);
private isHighlightCommand(command);
private highlightData(top, left, width, height);
private removeHighlightData();
private sleep(delay);
onCommand(command: WebDriverCommand): Promise<void>;
}