webdriverio 6.7.2 → 6.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/build/commands/browser/$$.d.ts +1 -0
  2. package/build/commands/browser/$$.d.ts.map +1 -1
  3. package/build/commands/browser/$.d.ts +1 -0
  4. package/build/commands/browser/$.d.ts.map +1 -1
  5. package/build/commands/browser/custom$$.d.ts +1 -0
  6. package/build/commands/browser/custom$$.d.ts.map +1 -1
  7. package/build/commands/browser/custom$.d.ts +1 -0
  8. package/build/commands/browser/custom$.d.ts.map +1 -1
  9. package/build/commands/browser/debug.d.ts +1 -0
  10. package/build/commands/browser/debug.d.ts.map +1 -1
  11. package/build/commands/browser/deleteCookies.d.ts +1 -0
  12. package/build/commands/browser/deleteCookies.d.ts.map +1 -1
  13. package/build/commands/browser/execute.d.ts +1 -0
  14. package/build/commands/browser/execute.d.ts.map +1 -1
  15. package/build/commands/browser/executeAsync.d.ts +1 -0
  16. package/build/commands/browser/executeAsync.d.ts.map +1 -1
  17. package/build/commands/browser/getCookies.d.ts +1 -0
  18. package/build/commands/browser/getCookies.d.ts.map +1 -1
  19. package/build/commands/browser/getPuppeteer.d.ts +1 -0
  20. package/build/commands/browser/getPuppeteer.d.ts.map +1 -1
  21. package/build/commands/browser/getWindowSize.d.ts +1 -0
  22. package/build/commands/browser/getWindowSize.d.ts.map +1 -1
  23. package/build/commands/browser/keys.d.ts +1 -0
  24. package/build/commands/browser/keys.d.ts.map +1 -1
  25. package/build/commands/browser/mock.d.ts +1 -1
  26. package/build/commands/browser/newWindow.d.ts +1 -1
  27. package/build/commands/browser/pause.d.ts +1 -0
  28. package/build/commands/browser/pause.d.ts.map +1 -1
  29. package/build/commands/browser/react$$.d.ts +1 -1
  30. package/build/commands/browser/react$.d.ts +1 -1
  31. package/build/commands/browser/reloadSession.d.ts +1 -0
  32. package/build/commands/browser/reloadSession.d.ts.map +1 -1
  33. package/build/commands/browser/saveRecordingScreen.d.ts +1 -0
  34. package/build/commands/browser/saveRecordingScreen.d.ts.map +1 -1
  35. package/build/commands/browser/saveScreenshot.d.ts +1 -0
  36. package/build/commands/browser/saveScreenshot.d.ts.map +1 -1
  37. package/build/commands/browser/setCookies.d.ts +1 -0
  38. package/build/commands/browser/setCookies.d.ts.map +1 -1
  39. package/build/commands/browser/setTimeout.d.ts +1 -0
  40. package/build/commands/browser/setTimeout.d.ts.map +1 -1
  41. package/build/commands/browser/setWindowSize.d.ts +1 -0
  42. package/build/commands/browser/setWindowSize.d.ts.map +1 -1
  43. package/build/commands/browser/switchWindow.d.ts +1 -0
  44. package/build/commands/browser/switchWindow.d.ts.map +1 -1
  45. package/build/commands/browser/throttle.d.ts +1 -1
  46. package/build/commands/browser/touchAction.d.ts +1 -1
  47. package/build/commands/browser/uploadFile.d.ts +1 -0
  48. package/build/commands/browser/uploadFile.d.ts.map +1 -1
  49. package/build/commands/browser/url.d.ts +1 -0
  50. package/build/commands/browser/url.d.ts.map +1 -1
  51. package/build/commands/browser/waitUntil.d.ts +1 -1
  52. package/build/types.d.ts +1 -0
  53. package/build/types.d.ts.map +1 -1
  54. package/package.json +8 -8
  55. package/webdriverio-core.d.ts +31 -15
  56. package/webdriverio.d.ts +14 -6
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function $$(this: WebdriverIO.BrowserObject, selector: string): Promise<object[]>;
3
4
  //# sourceMappingURL=$$.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$$.ts"],"names":[],"mappings":";AA6CA,wBAA8B,EAAE,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAIlF"}
1
+ {"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$$.ts"],"names":[],"mappings":";;AA6CA,wBAA8B,EAAE,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAIlF"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  import type { ElementReference } from '../../types';
3
4
  export default function $(this: WebdriverIO.BrowserObject, selector: string | ElementReference): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$.ts"],"names":[],"mappings":";AAoDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,wBAA8B,CAAC,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,gBAAgB,gBAWpG"}
1
+ {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$.ts"],"names":[],"mappings":";;AAoDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,wBAA8B,CAAC,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,gBAAgB,gBAWpG"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  declare function custom$$(this: WebdriverIO.BrowserObject, strategyName: string, ...strategyArguments: any[]): Promise<object[]>;
3
4
  export default custom$$;
@@ -1 +1 @@
1
- {"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$$.ts"],"names":[],"mappings":";AA4BA,iBAAe,QAAQ,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,GAAG,EAAE,qBAsB1G;AAED,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$$.ts"],"names":[],"mappings":";;AA4BA,iBAAe,QAAQ,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,GAAG,EAAE,qBAsB1G;AAED,eAAe,QAAQ,CAAA"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  declare function custom$(this: WebdriverIO.BrowserObject, strategyName: string, ...strategyArguments: any[]): Promise<any>;
3
4
  export default custom$;
@@ -1 +1 @@
1
- {"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$.ts"],"names":[],"mappings":";AA2BA,iBAAe,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,GAAG,EAAE,gBAuBzG;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$.ts"],"names":[],"mappings":";;AA2BA,iBAAe,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,GAAG,EAAE,gBAuBzG;AAED,eAAe,OAAO,CAAA"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function debug(this: WebdriverIO.BrowserObject, commandTimeout?: number): Promise<unknown>;
3
4
  //# sourceMappingURL=debug.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/debug.ts"],"names":[],"mappings":";AAkCA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,SAAO,oBA+EnF"}
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/debug.ts"],"names":[],"mappings":";;AAkCA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,SAAO,oBA+EnF"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function deleteCookies(this: WebdriverIO.BrowserObject, names?: string | string[]): Promise<void> | Promise<void[]>;
3
4
  //# sourceMappingURL=deleteCookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deleteCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/deleteCookies.ts"],"names":[],"mappings":";AA4CA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,mCAY/F"}
1
+ {"version":3,"file":"deleteCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/deleteCookies.ts"],"names":[],"mappings":";;AA4CA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,mCAY/F"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function execute(this: WebdriverIO.BrowserObject, script: string | Function, ...args: any[]): Promise<any>;
3
4
  //# sourceMappingURL=execute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/execute.ts"],"names":[],"mappings":";AAqCA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,gBAiB1G"}
1
+ {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/execute.ts"],"names":[],"mappings":";;AAqCA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,gBAiB1G"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function executeAsync(this: WebdriverIO.BrowserObject, script: string | Function, ...args: any[]): Promise<any>;
3
4
  //# sourceMappingURL=executeAsync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":";AA6CA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,gBAiB/G"}
1
+ {"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":";;AA6CA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,gBAiB/G"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function getCookies(this: WebdriverIO.BrowserObject, names?: string | string[]): Promise<object[]>;
3
4
  //# sourceMappingURL=getCookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getCookies.ts"],"names":[],"mappings":";AAgCA,wBAA8B,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,qBAalG"}
1
+ {"version":3,"file":"getCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getCookies.ts"],"names":[],"mappings":";;AAgCA,wBAA8B,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,qBAalG"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function getPuppeteer(this: WebdriverIO.BrowserObject): Promise<any>;
3
4
  //# sourceMappingURL=getPuppeteer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":";AAYA,wBAA8B,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,gBAsD1E"}
1
+ {"version":3,"file":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":";;AAYA,wBAA8B,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,gBAsD1E"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function getWindowSize(this: WebdriverIO.BrowserObject): any;
3
4
  //# sourceMappingURL=getWindowSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWindowSize.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getWindowSize.ts"],"names":[],"mappings":";AAuBA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,OAOpE"}
1
+ {"version":3,"file":"getWindowSize.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getWindowSize.ts"],"names":[],"mappings":";;AAuBA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,OAOpE"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function keys(this: WebdriverIO.BrowserObject, value: string | string[]): Promise<void>;
3
4
  //# sourceMappingURL=keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/keys.ts"],"names":[],"mappings":";AA6BA,MAAM,CAAC,OAAO,UAAU,IAAI,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,iBAkCtF"}
1
+ {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/keys.ts"],"names":[],"mappings":";;AA6BA,MAAM,CAAC,OAAO,UAAU,IAAI,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,iBAkCtF"}
@@ -1,5 +1,5 @@
1
- /// <reference types="webdriverio" />
2
1
  /// <reference types="webdriverio/webdriverio-core" />
2
+ /// <reference types="webdriverio" />
3
3
  import DevtoolsNetworkInterception from '../../utils/interception/devtools';
4
4
  import WebDriverNetworkInterception from '../../utils/interception/webdriver';
5
5
  export default function mock(this: WebdriverIO.BrowserObject, url: string, filterOptions: WebdriverIO.MockFilterOptions): Promise<DevtoolsNetworkInterception | WebDriverNetworkInterception>;
@@ -1,4 +1,4 @@
1
- /// <reference types="webdriverio" />
2
1
  /// <reference types="webdriverio/webdriverio-core" />
2
+ /// <reference types="webdriverio" />
3
3
  export default function newWindow(this: WebdriverIO.BrowserObject, url: string, { windowName, windowFeatures }?: WebdriverIO.NewWindowOptions): Promise<string>;
4
4
  //# sourceMappingURL=newWindow.d.ts.map
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function pause(this: WebdriverIO.BrowserObject, milliseconds?: number): Promise<unknown>;
3
4
  //# sourceMappingURL=pause.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/pause.ts"],"names":[],"mappings":";AAsBA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,YAAY,SAAO,oBAElF"}
1
+ {"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/pause.ts"],"names":[],"mappings":";;AAsBA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,YAAY,SAAO,oBAElF"}
@@ -1,4 +1,4 @@
1
- /// <reference types="webdriverio" />
2
1
  /// <reference types="webdriverio/webdriverio-core" />
2
+ /// <reference types="webdriverio" />
3
3
  export default function react$$(this: WebdriverIO.BrowserObject, selector: string, { props, state }?: WebdriverIO.ReactSelectorOptions): Promise<object[]>;
4
4
  //# sourceMappingURL=react$$.d.ts.map
@@ -1,4 +1,4 @@
1
- /// <reference types="webdriverio" />
2
1
  /// <reference types="webdriverio/webdriverio-core" />
2
+ /// <reference types="webdriverio" />
3
3
  export default function react$(this: WebdriverIO.BrowserObject, selector: string, { props, state }?: WebdriverIO.ReactSelectorOptions): Promise<any>;
4
4
  //# sourceMappingURL=react$.d.ts.map
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function reloadSession(this: WebdriverIO.BrowserObject): Promise<string>;
3
4
  //# sourceMappingURL=reloadSession.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reloadSession.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/reloadSession.ts"],"names":[],"mappings":";AAwBA,wBAA8B,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,mBAyB3E"}
1
+ {"version":3,"file":"reloadSession.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/reloadSession.ts"],"names":[],"mappings":";;AAwBA,wBAA8B,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,mBAyB3E"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  /// <reference types="node" />
3
4
  export default function saveRecordingScreen(this: WebdriverIO.BrowserObject, filepath: string): Promise<Buffer>;
@@ -1 +1 @@
1
- {"version":3,"file":"saveRecordingScreen.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/saveRecordingScreen.ts"],"names":[],"mappings":";;AAwBA,wBAA8B,mBAAmB,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAgBnG"}
1
+ {"version":3,"file":"saveRecordingScreen.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/saveRecordingScreen.ts"],"names":[],"mappings":";;;AAwBA,wBAA8B,mBAAmB,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAgBnG"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  /// <reference types="node" />
3
4
  export default function saveScreenshot(this: WebdriverIO.BrowserObject, filepath: string): Promise<Buffer>;
@@ -1 +1 @@
1
- {"version":3,"file":"saveScreenshot.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/saveScreenshot.ts"],"names":[],"mappings":";;AAuBA,wBAA8B,cAAc,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAgB9F"}
1
+ {"version":3,"file":"saveScreenshot.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/saveScreenshot.ts"],"names":[],"mappings":";;;AAuBA,wBAA8B,cAAc,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAgB9F"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  /// <reference types="webdriver" />
3
4
  export default function setCookies(this: WebdriverIO.BrowserObject, cookieObjs: WebDriver.Cookie | WebDriver.Cookie[]): Promise<void[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"setCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setCookies.ts"],"names":[],"mappings":";;AAsDA,wBAA8B,UAAU,CACpC,IAAI,EAAE,WAAW,CAAC,aAAa,EAC/B,UAAU,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,mBAUpD"}
1
+ {"version":3,"file":"setCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setCookies.ts"],"names":[],"mappings":";;;AAsDA,wBAA8B,UAAU,CACpC,IAAI,EAAE,WAAW,CAAC,aAAa,EAC/B,UAAU,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,mBAUpD"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  /// <reference types="webdriver" />
3
4
  export default function setTimeout(this: WebdriverIO.BrowserObject, timeouts: WebDriver.Timeouts): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"setTimeout.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setTimeout.ts"],"names":[],"mappings":";;AA6BA,wBAA8B,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,gBAgCrG"}
1
+ {"version":3,"file":"setTimeout.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setTimeout.ts"],"names":[],"mappings":";;;AA6BA,wBAA8B,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,gBAgCrG"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function setWindowSize(this: WebdriverIO.BrowserObject, width: number, height: number): any;
3
4
  //# sourceMappingURL=setWindowSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setWindowSize.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setWindowSize.ts"],"names":[],"mappings":";AAqBA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,OAwBnG"}
1
+ {"version":3,"file":"setWindowSize.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setWindowSize.ts"],"names":[],"mappings":";;AAqBA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,OAwBnG"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function switchWindow(this: WebdriverIO.BrowserObject, urlOrTitleToMatch: string | RegExp): Promise<string>;
3
4
  //# sourceMappingURL=switchWindow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"switchWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/switchWindow.ts"],"names":[],"mappings":";AA6BA,wBAA8B,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,iBAAiB,EAAE,MAAM,GAAG,MAAM,mBA+B9G"}
1
+ {"version":3,"file":"switchWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/switchWindow.ts"],"names":[],"mappings":";;AA6BA,wBAA8B,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,iBAAiB,EAAE,MAAM,GAAG,MAAM,mBA+B9G"}
@@ -1,4 +1,4 @@
1
- /// <reference types="webdriverio" />
2
1
  /// <reference types="webdriverio/webdriverio-core" />
2
+ /// <reference types="webdriverio" />
3
3
  export default function throttle(this: WebdriverIO.BrowserObject, params: WebdriverIO.ThrottleOptions): Promise<null>;
4
4
  //# sourceMappingURL=throttle.d.ts.map
@@ -1,4 +1,4 @@
1
- /// <reference types="webdriverio" />
2
1
  /// <reference types="webdriverio/webdriverio-core" />
2
+ /// <reference types="webdriverio" />
3
3
  export default function touchAction(this: WebdriverIO.BrowserObject, ...args: WebdriverIO.TouchAction[]): any;
4
4
  //# sourceMappingURL=touchAction.d.ts.map
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function uploadFile(this: WebdriverIO.BrowserObject, localPath: string): Promise<unknown>;
3
4
  //# sourceMappingURL=uploadFile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"uploadFile.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/uploadFile.ts"],"names":[],"mappings":";AA4BA,wBAA8B,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,SAAS,EAAE,MAAM,oBA0B3F"}
1
+ {"version":3,"file":"uploadFile.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/uploadFile.ts"],"names":[],"mappings":";;AA4BA,wBAA8B,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,SAAS,EAAE,MAAM,oBA0B3F"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export default function url(this: WebdriverIO.BrowserObject, path: string): Promise<void>;
3
4
  //# sourceMappingURL=url.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/url.ts"],"names":[],"mappings":";AAqCA,MAAM,CAAC,OAAO,UAAU,GAAG,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,IAAI,EAAE,MAAM,iBAUzE"}
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/url.ts"],"names":[],"mappings":";;AAqCA,MAAM,CAAC,OAAO,UAAU,GAAG,CAAE,IAAI,EAAE,WAAW,CAAC,aAAa,EAAE,IAAI,EAAE,MAAM,iBAUzE"}
@@ -1,4 +1,4 @@
1
- /// <reference types="webdriverio" />
2
1
  /// <reference types="webdriverio/webdriverio-core" />
2
+ /// <reference types="webdriverio" />
3
3
  export default function waitUntil(this: WebdriverIO.BrowserObject, condition: () => boolean | Promise<Boolean>, { timeout, interval, timeoutMsg }?: WebdriverIO.WaitUntilOptions): any;
4
4
  //# sourceMappingURL=waitUntil.d.ts.map
package/build/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="webdriverio/webdriverio-core" />
1
2
  /// <reference types="webdriverio" />
2
3
  export declare type ElementReferenceId = 'element-6066-11e4-a52e-4f735466cecf';
3
4
  export declare type ElementReference = Record<ElementReferenceId, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,oBAAY,kBAAkB,GAAG,qCAAqC,CAAA;AAEtE,oBAAY,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;AAEjE,MAAM,WAAW,aAAc,SAAQ,gBAAgB,EAAE,WAAW,CAAC,aAAa;IAI9E,SAAS,EAAE,MAAM,CAAA;IAIjB,OAAO,EAAE,MAAM,CAAA;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,KAAK,CAAC,EAAE,MAAM,CAAA;IAId,MAAM,CAAC,EAAE,WAAW,CAAC,aAAa,CAAA;IAIlC,cAAc,CAAC,EAAE,OAAO,CAAA;IAIxB,KAAK,CAAC,EAAE,KAAK,CAAA;CAChB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;AAAA,oBAAY,kBAAkB,GAAG,qCAAqC,CAAA;AAEtE,oBAAY,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;AAEjE,MAAM,WAAW,aAAc,SAAQ,gBAAgB,EAAE,WAAW,CAAC,aAAa;IAI9E,SAAS,EAAE,MAAM,CAAA;IAIjB,OAAO,EAAE,MAAM,CAAA;IAKf,QAAQ,CAAC,EAAE,MAAM,CAAA;IAIjB,KAAK,CAAC,EAAE,MAAM,CAAA;IAId,MAAM,CAAC,EAAE,WAAW,CAAC,aAAa,CAAA;IAIlC,cAAc,CAAC,EAAE,OAAO,CAAA;IAIxB,KAAK,CAAC,EAAE,KAAK,CAAA;CAChB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "webdriverio",
3
3
  "description": "Next-gen browser and mobile automation test framework for Node.js",
4
- "version": "6.7.2",
4
+ "version": "6.7.3",
5
5
  "homepage": "https://webdriver.io",
6
6
  "author": "Christian Bromann <christian@saucelabs.com>",
7
7
  "license": "MIT",
@@ -53,14 +53,14 @@
53
53
  "@types/lodash.clonedeep": "^4.5.6",
54
54
  "@types/lodash.isplainobject": "^4.0.6",
55
55
  "@types/puppeteer-core": "^2.0.0",
56
- "@wdio/config": "6.6.3",
57
- "@wdio/logger": "6.6.0",
58
- "@wdio/repl": "6.7.1",
59
- "@wdio/utils": "6.7.0",
56
+ "@wdio/config": "6.7.3",
57
+ "@wdio/logger": "6.7.3",
58
+ "@wdio/repl": "6.7.3",
59
+ "@wdio/utils": "6.7.3",
60
60
  "archiver": "^5.0.0",
61
61
  "atob": "^2.1.2",
62
62
  "css-value": "^0.0.1",
63
- "devtools": "6.7.0",
63
+ "devtools": "6.7.3",
64
64
  "fs-extra": "^9.0.1",
65
65
  "get-port": "^5.1.1",
66
66
  "grapheme-splitter": "^1.0.2",
@@ -73,7 +73,7 @@
73
73
  "resq": "^1.9.1",
74
74
  "rgb2hex": "^0.2.0",
75
75
  "serialize-error": "^7.0.0",
76
- "webdriver": "6.7.1"
76
+ "webdriver": "6.7.3"
77
77
  },
78
- "gitHead": "803f23253064e751cb7458549c6a369d9258be36"
78
+ "gitHead": "2d72a4f1be35727342bf31b750d76eab6c8b50e9"
79
79
  }
@@ -230,8 +230,17 @@ declare namespace WebdriverIO {
230
230
  [instanceName: string]: WebDriver.DesiredCapabilities;
231
231
  }
232
232
 
233
- interface Suite {}
233
+ interface Suite {
234
+ error?: any;
235
+ }
234
236
  interface Test {}
237
+ interface TestResult {
238
+ error?: any,
239
+ result?: any,
240
+ passed: boolean,
241
+ duration: number,
242
+ retries: { limit: number, attempts: number }
243
+ }
235
244
 
236
245
  interface Results {
237
246
  finished: number,
@@ -358,13 +367,7 @@ declare namespace WebdriverIO {
358
367
  * @param stepData Cucumber step data
359
368
  * @param world Cucumber world
360
369
  */
361
- afterHook?(test: any, context: any, result: {
362
- error?: any,
363
- result?: any,
364
- passed: boolean,
365
- duration: number,
366
- retries: { limit: number, attempts: number }
367
- }, stepData?: any, world?: any): void;
370
+ afterHook?(test: any, context: any, result: TestResult, stepData?: any, world?: any): void;
368
371
 
369
372
  /**
370
373
  * Gets executed after all tests are done. You still have access to all global variables from
@@ -417,13 +420,7 @@ declare namespace WebdriverIO {
417
420
  * @param context context to current running test
418
421
  * @param result test result
419
422
  */
420
- afterTest?(test: Test, context: any, result: {
421
- error?: any,
422
- result?: any,
423
- passed: boolean,
424
- duration: number,
425
- retries: { limit: number, attempts: number }
426
- }): void;
423
+ afterTest?(test: Test, context: any, result: TestResult): void;
427
424
  }
428
425
  type _HooksArray = {
429
426
  [K in keyof Pick<HookFunctions, "onPrepare" | "onWorkerStart" | "onComplete" | "before" | "after" | "beforeSession" | "afterSession">]: HookFunctions[K] | Array<HookFunctions[K]>;
@@ -1333,6 +1330,25 @@ declare namespace WebdriverIO {
1333
1330
  ): Promise<boolean>;
1334
1331
  }
1335
1332
 
1333
+ interface BrowserObject {
1334
+ isMultiremote?: false;
1335
+ }
1336
+
1337
+ type MultiRemoteBrowserReference = Record<string, BrowserObject>
1338
+
1339
+ interface MultiRemoteBrowser extends Browser {
1340
+ /**
1341
+ * multiremote browser instance names
1342
+ */
1343
+ instances: string[];
1344
+ /**
1345
+ * flag to indicate multiremote browser session
1346
+ */
1347
+ isMultiremote: true;
1348
+ }
1349
+
1350
+ type MultiRemoteBrowserObject = MultiRemoteBrowser & MultiRemoteBrowserReference
1351
+
1336
1352
  interface Config extends Options, Omit<WebDriver.Options, "capabilities">, Hooks {
1337
1353
  /**
1338
1354
  * internal usage only. To run in watch mode see https://webdriver.io/docs/watcher.html
package/webdriverio.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  /// <reference types="webdriverio/webdriverio-core"/>
2
-
3
2
  declare namespace WebdriverIO {
4
3
  function remote(
5
4
  options?: RemoteOptions,
@@ -12,7 +11,7 @@ declare namespace WebdriverIO {
12
11
 
13
12
  function multiremote(
14
13
  options: MultiRemoteOptions
15
- ): Promise<BrowserObject>;
14
+ ): Promise<MultiRemoteBrowserObject>;
16
15
 
17
16
  type ElementReferenceId = 'element-6066-11e4-a52e-4f735466cecf'
18
17
  type ElementReference = Record<ElementReferenceId, string>
@@ -32,7 +31,11 @@ declare namespace WebdriverIO {
32
31
  * The executed script is assumed to be synchronous and the result of evaluating the script is returned to
33
32
  * the client.
34
33
  */
35
- execute: <T>(script: string | ((...arguments: any[]) => T), ...arguments: any[]) => Promise<T>;
34
+ execute: {
35
+ <T, U extends any[], V extends U>(script: string | ((...arguments: V) => T), ...arguments: U): Promise<T>;
36
+ // This overload can be removed when typescript supports partial generics inference: https://github.com/microsoft/TypeScript/issues/26242
37
+ <T>(script: string | ((...arguments: any[]) => T), ...arguments: any[]): Promise<T>;
38
+ };
36
39
 
37
40
  // there is no way to add callback as last parameter after `...args`.
38
41
  // https://github.com/Microsoft/TypeScript/issues/1360
@@ -43,10 +46,15 @@ declare namespace WebdriverIO {
43
46
  * the provided callback, which is always provided as the final argument to the function. The value
44
47
  * to this callback will be returned to the client.
45
48
  */
46
- executeAsync: (script: string | ((...arguments: any[]) => void), ...arguments: any[]) => Promise<any>;
49
+ executeAsync: <U extends any[], V extends U>(script: string | ((...arguments: V) => void), ...arguments: U) => Promise<any>;
47
50
  }
48
51
 
49
- interface BrowserObject extends WebDriver.ClientOptions, WebDriver.ClientAsync, Browser { }
52
+
53
+ interface BrowserObject extends WebDriver.ClientOptions, WebDriver.ClientAsync, Browser {
54
+ }
55
+
56
+ interface MultiRemoteBrowser extends WebDriver.ClientOptions, WebDriver.ClientAsync, Browser {
57
+ }
50
58
 
51
59
  /**
52
60
  * Error to be thrown when a severe error was encountered when a Service is being ran.
@@ -54,7 +62,7 @@ declare namespace WebdriverIO {
54
62
  class SevereServiceError extends Error { }
55
63
  }
56
64
 
57
- declare var browser: WebdriverIO.BrowserObject;
65
+ declare var browser: WebdriverIO.BrowserObject | WebdriverIO.MultiRemoteBrowserObject;
58
66
  declare var driver: WebdriverIO.BrowserObject;
59
67
 
60
68
  /**