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.

utils.d.ts 1.4KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { WebDriverResponse } from './request';
  2. import { Options, JSONWPCommandError, SessionFlags, DesiredCapabilities } from './types';
  3. export declare function startWebDriverSession(params: Options): Promise<{
  4. sessionId: string;
  5. capabilities: DesiredCapabilities;
  6. }>;
  7. export declare function isSuccessfulResponse(statusCode?: number, body?: WebDriverResponse): boolean;
  8. export declare function getPrototype({ isW3C, isChrome, isMobile, isSauce, isSeleniumStandalone }: Partial<SessionFlags>): Record<string, PropertyDescriptor>;
  9. export declare function getErrorFromResponseBody(body: any): Error;
  10. export declare class CustomRequestError extends Error {
  11. constructor(body: WebDriverResponse);
  12. }
  13. export declare function getEnvironmentVars({ isW3C, isMobile, isIOS, isAndroid, isChrome, isSauce, isSeleniumStandalone }: Partial<SessionFlags>): {
  14. isW3C: {
  15. value: boolean | undefined;
  16. };
  17. isMobile: {
  18. value: boolean | undefined;
  19. };
  20. isIOS: {
  21. value: boolean | undefined;
  22. };
  23. isAndroid: {
  24. value: boolean | undefined;
  25. };
  26. isChrome: {
  27. value: boolean | undefined;
  28. };
  29. isSauce: {
  30. value: boolean | undefined;
  31. };
  32. isSeleniumStandalone: {
  33. value: boolean | undefined;
  34. };
  35. };
  36. export declare const getSessionError: (err: JSONWPCommandError, params?: Partial<Options>) => string;
  37. //# sourceMappingURL=utils.d.ts.map