Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

devtools.d.ts 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /// <reference types="webdriverio/webdriverio-core" />
  2. /// <reference types="node" />
  3. /// <reference types="webdriverio" />
  4. /// <reference types="@wdio/cucumber-framework" />
  5. import Interception from '.';
  6. declare type RequestOptions = {
  7. requestId: string;
  8. responseCode?: number;
  9. responseHeaders?: Record<string, string>[];
  10. body?: string | WebdriverIO.JsonCompatible;
  11. errorReason?: string;
  12. };
  13. declare type ClientResponse = {
  14. body: string;
  15. base64Encoded?: boolean;
  16. };
  17. declare type Client = {
  18. send: (requestName: string, requestOptions: RequestOptions) => Promise<ClientResponse>;
  19. };
  20. declare type Event = {
  21. requestId: string;
  22. request: WebdriverIO.Matches & {
  23. mockedResponse: string | Buffer;
  24. };
  25. responseStatusCode?: number;
  26. responseHeaders: Record<string, string>[];
  27. };
  28. export default class DevtoolsInterception extends Interception {
  29. static handleRequestInterception(client: Client, mocks: Set<Interception>): (event: Event) => Promise<void | ClientResponse>;
  30. get calls(): import("webdriverio").Matches[];
  31. clear(): void;
  32. restore(): void;
  33. respond(overwrite: WebdriverIO.MockOverwrite, params?: WebdriverIO.MockResponseParams): void;
  34. respondOnce(overwrite: WebdriverIO.MockOverwrite, params?: WebdriverIO.MockResponseParams): void;
  35. abort(errorReason: string, sticky?: boolean): void;
  36. abortOnce(errorReason: string): void;
  37. }
  38. export {};
  39. //# sourceMappingURL=devtools.d.ts.map