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 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /// <reference types="node"/>
  2. /// <reference types="webdriver"/>
  3. declare namespace WebDriver {
  4. interface ChromeOptions {
  5. /**
  6. * `devtools` only, switch headless mode by either `headless` flag or `--headless` argument but not both
  7. */
  8. headless?: boolean;
  9. }
  10. interface FirefoxOptions {
  11. /**
  12. * `devtools` only, switch headless mode by either `headless` flag or `--headless` argument but not both
  13. */
  14. headless?: boolean;
  15. }
  16. interface MicrosoftEdgeOptions {
  17. /**
  18. * `devtools` only, switch headless mode by either `headless` flag or `--headless` argument but not both
  19. */
  20. headless?: boolean;
  21. }
  22. }
  23. declare namespace DevTools {
  24. function newSession(
  25. options?: WebDriver.Options,
  26. modifier?: (...args: any[]) => any,
  27. proto?: object,
  28. commandWrapper?: (commandName: string, fn: (...args: any[]) => any) => any
  29. ): Promise<Client>;
  30. function reloadSession(
  31. instance: Client
  32. ): Promise<Client>;
  33. // generated typings
  34. // devtools types
  35. interface Client {
  36. newSession(capabilities: object): object;
  37. deleteSession(): void;
  38. status(): object;
  39. getTimeouts(): object;
  40. setTimeouts(implicit?: number, pageLoad?: number, script?: number): void;
  41. getUrl(): string;
  42. navigateTo(url: string): string;
  43. back(): void;
  44. forward(): void;
  45. refresh(): void;
  46. getTitle(): string;
  47. getWindowHandle(): string;
  48. closeWindow(): void;
  49. switchToWindow(handle: string): void;
  50. createWindow(type: 'tab' | 'window'): object;
  51. getWindowHandles(): string[];
  52. printPage(orientation?: string, scale?: number, background?: boolean, width?: number, height?: number, top?: number, bottom?: number, left?: number, right?: number, shrinkToFit?: boolean, pageRanges?: object[]): string;
  53. switchToFrame(id: (number|object|null)): void;
  54. switchToParentFrame(): void;
  55. getWindowRect(): object;
  56. setWindowRect(x: (number|null), y: (number|null), width: (number|null), height: (number|null)): object;
  57. maximizeWindow(): object;
  58. minimizeWindow(): object;
  59. fullscreenWindow(): object;
  60. findElement(using: string, value: string): WebDriver.ElementReference[];
  61. findElements(using: string, value: string): WebDriver.ElementReference[];
  62. findElementFromElement(using: string, value: string): WebDriver.ElementReference;
  63. findElementsFromElement(using: string, value: string): WebDriver.ElementReference[];
  64. getActiveElement(): string;
  65. isElementSelected(): boolean;
  66. isElementDisplayed(): boolean;
  67. getElementAttribute(name: string): string;
  68. getElementProperty(name: string): string;
  69. getElementCSSValue(propertyName: string): string;
  70. getElementText(): string;
  71. getElementTagName(): string;
  72. getElementRect(): object;
  73. isElementEnabled(): boolean;
  74. elementClick(): void;
  75. elementClear(): void;
  76. elementSendKeys(text: string): void;
  77. getPageSource(): string;
  78. executeScript(script: string, args?: (string|object|number|boolean|undefined)[]): any;
  79. executeAsyncScript(script: string, args: (string|object|number|boolean|undefined)[]): any;
  80. getAllCookies(): object[];
  81. addCookie(cookie: object): void;
  82. deleteAllCookies(): void;
  83. getNamedCookie(name: string): object;
  84. deleteCookie(name: string): void;
  85. performActions(actions: object[]): void;
  86. releaseActions(): void;
  87. dismissAlert(): void;
  88. acceptAlert(): void;
  89. getAlertText(): string;
  90. sendAlertText(text: string): void;
  91. takeScreenshot(): string;
  92. takeElementScreenshot(scroll?: boolean): string;
  93. getElementComputedRole(): string;
  94. getElementComputedLabel(): string;
  95. setPermissions(descriptor: object, state: string, oneRealm?: boolean): void;
  96. generateTestReport(message: string, group: string): void;
  97. createMockSensor(mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): void;
  98. getMockSensor(type: string): object;
  99. updateMockSensor(type: string, mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): void;
  100. deleteMockSensor(type: string): void;
  101. setTimeZone(time_zone: string): void;
  102. addVirtualAuthenticator(protocol?: string, transport?: string, hasResidentKey?: boolean, hasUserVerification?: boolean, isUserConsenting?: boolean, isUserVerified?: boolean, extensions?: object[], uvm?: object[]): void;
  103. removeVirtualAuthenticator(authenticatorId: string): void;
  104. addCredential(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, largeBlob: string): void;
  105. getCredentials(authenticatorId: string): void;
  106. removeAllCredentials(authenticatorId: string): void;
  107. removeCredential(authenticatorId: string, credentialId: string): void;
  108. setUserVerified(authenticatorId: string, credentialId: string): void;
  109. }
  110. }
  111. declare module "devtools" {
  112. export default DevTools;
  113. const SUPPORTED_BROWSER: string[]
  114. export { SUPPORTED_BROWSER }
  115. }