highlight_delay_barrier.d.ts 843 B

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