webdriverio 8.1.3 → 8.2.0
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.
- package/build/commands/browser/$$.d.ts +1 -1
- package/build/commands/browser/$$.d.ts.map +1 -1
- package/build/commands/browser/$$.js +1 -1
- package/build/commands/browser/$.d.ts +1 -1
- package/build/commands/browser/$.d.ts.map +1 -1
- package/build/commands/browser/$.js +1 -1
- package/build/commands/browser/action.d.ts +3 -3
- package/build/commands/browser/action.d.ts.map +1 -1
- package/build/commands/browser/action.js +1 -1
- package/build/commands/browser/actions.d.ts +1 -1
- package/build/commands/browser/actions.d.ts.map +1 -1
- package/build/commands/browser/actions.js +1 -1
- package/build/commands/browser/call.d.ts +1 -1
- package/build/commands/browser/call.d.ts.map +1 -1
- package/build/commands/browser/call.js +1 -1
- package/build/commands/browser/custom$$.d.ts +1 -1
- package/build/commands/browser/custom$$.d.ts.map +1 -1
- package/build/commands/browser/custom$$.js +1 -1
- package/build/commands/browser/custom$.d.ts +1 -1
- package/build/commands/browser/custom$.d.ts.map +1 -1
- package/build/commands/browser/custom$.js +1 -1
- package/build/commands/browser/debug.d.ts +1 -1
- package/build/commands/browser/debug.d.ts.map +1 -1
- package/build/commands/browser/debug.js +1 -1
- package/build/commands/browser/deleteCookies.d.ts +1 -1
- package/build/commands/browser/deleteCookies.d.ts.map +1 -1
- package/build/commands/browser/deleteCookies.js +1 -1
- package/build/commands/browser/execute.d.ts +1 -1
- package/build/commands/browser/execute.d.ts.map +1 -1
- package/build/commands/browser/execute.js +1 -1
- package/build/commands/browser/executeAsync.d.ts +1 -1
- package/build/commands/browser/executeAsync.d.ts.map +1 -1
- package/build/commands/browser/executeAsync.js +1 -1
- package/build/commands/browser/getCookies.d.ts +1 -1
- package/build/commands/browser/getCookies.d.ts.map +1 -1
- package/build/commands/browser/getCookies.js +1 -1
- package/build/commands/browser/getPuppeteer.d.ts +1 -1
- package/build/commands/browser/getPuppeteer.d.ts.map +1 -1
- package/build/commands/browser/getPuppeteer.js +1 -1
- package/build/commands/browser/getWindowSize.d.ts +1 -1
- package/build/commands/browser/getWindowSize.d.ts.map +1 -1
- package/build/commands/browser/getWindowSize.js +1 -1
- package/build/commands/browser/keys.d.ts +1 -1
- package/build/commands/browser/keys.d.ts.map +1 -1
- package/build/commands/browser/keys.js +1 -1
- package/build/commands/browser/mock.d.ts +1 -1
- package/build/commands/browser/mock.d.ts.map +1 -1
- package/build/commands/browser/mock.js +1 -1
- package/build/commands/browser/mockClearAll.d.ts +1 -1
- package/build/commands/browser/mockClearAll.d.ts.map +1 -1
- package/build/commands/browser/mockClearAll.js +1 -1
- package/build/commands/browser/mockRestoreAll.d.ts +1 -1
- package/build/commands/browser/mockRestoreAll.d.ts.map +1 -1
- package/build/commands/browser/mockRestoreAll.js +1 -1
- package/build/commands/browser/newWindow.d.ts +1 -1
- package/build/commands/browser/newWindow.d.ts.map +1 -1
- package/build/commands/browser/newWindow.js +1 -1
- package/build/commands/browser/pause.d.ts +1 -1
- package/build/commands/browser/pause.d.ts.map +1 -1
- package/build/commands/browser/pause.js +1 -1
- package/build/commands/browser/react$$.d.ts +1 -1
- package/build/commands/browser/react$$.d.ts.map +1 -1
- package/build/commands/browser/react$$.js +1 -1
- package/build/commands/browser/react$.d.ts +1 -1
- package/build/commands/browser/react$.d.ts.map +1 -1
- package/build/commands/browser/react$.js +1 -1
- package/build/commands/browser/reloadSession.d.ts +1 -1
- package/build/commands/browser/reloadSession.d.ts.map +1 -1
- package/build/commands/browser/reloadSession.js +1 -1
- package/build/commands/browser/savePDF.d.ts +1 -1
- package/build/commands/browser/savePDF.d.ts.map +1 -1
- package/build/commands/browser/savePDF.js +1 -1
- package/build/commands/browser/saveRecordingScreen.d.ts +1 -1
- package/build/commands/browser/saveRecordingScreen.d.ts.map +1 -1
- package/build/commands/browser/saveRecordingScreen.js +1 -1
- package/build/commands/browser/saveScreenshot.d.ts +1 -1
- package/build/commands/browser/saveScreenshot.d.ts.map +1 -1
- package/build/commands/browser/saveScreenshot.js +1 -1
- package/build/commands/browser/scroll.d.ts +1 -1
- package/build/commands/browser/scroll.d.ts.map +1 -1
- package/build/commands/browser/scroll.js +1 -1
- package/build/commands/browser/setCookies.d.ts +1 -1
- package/build/commands/browser/setCookies.d.ts.map +1 -1
- package/build/commands/browser/setCookies.js +1 -1
- package/build/commands/browser/setTimeout.d.ts +1 -1
- package/build/commands/browser/setTimeout.d.ts.map +1 -1
- package/build/commands/browser/setTimeout.js +1 -1
- package/build/commands/browser/setWindowSize.d.ts +1 -1
- package/build/commands/browser/setWindowSize.d.ts.map +1 -1
- package/build/commands/browser/setWindowSize.js +1 -1
- package/build/commands/browser/switchWindow.d.ts +1 -1
- package/build/commands/browser/switchWindow.d.ts.map +1 -1
- package/build/commands/browser/switchWindow.js +1 -1
- package/build/commands/browser/throttle.d.ts +1 -1
- package/build/commands/browser/throttle.d.ts.map +1 -1
- package/build/commands/browser/throttle.js +1 -1
- package/build/commands/browser/touchAction.d.ts +1 -1
- package/build/commands/browser/touchAction.d.ts.map +1 -1
- package/build/commands/browser/touchAction.js +1 -1
- package/build/commands/browser/uploadFile.d.ts +1 -1
- package/build/commands/browser/uploadFile.d.ts.map +1 -1
- package/build/commands/browser/uploadFile.js +1 -1
- package/build/commands/browser/url.d.ts +1 -1
- package/build/commands/browser/url.d.ts.map +1 -1
- package/build/commands/browser/url.js +1 -1
- package/build/commands/browser/waitUntil.d.ts +1 -1
- package/build/commands/browser/waitUntil.d.ts.map +1 -1
- package/build/commands/browser/waitUntil.js +1 -1
- package/build/commands/browser.d.ts +36 -37
- package/build/commands/browser.d.ts.map +1 -1
- package/build/commands/browser.js +36 -37
- package/build/commands/element/$$.d.ts +2 -2
- package/build/commands/element/$$.d.ts.map +1 -1
- package/build/commands/element/$$.js +2 -2
- package/build/commands/element/$.d.ts +2 -2
- package/build/commands/element/$.d.ts.map +1 -1
- package/build/commands/element/$.js +2 -2
- package/build/commands/element/addValue.d.ts +1 -1
- package/build/commands/element/addValue.d.ts.map +1 -1
- package/build/commands/element/addValue.js +1 -1
- package/build/commands/element/clearValue.d.ts +1 -1
- package/build/commands/element/clearValue.d.ts.map +1 -1
- package/build/commands/element/clearValue.js +1 -1
- package/build/commands/element/click.d.ts +1 -1
- package/build/commands/element/click.d.ts.map +1 -1
- package/build/commands/element/click.js +1 -1
- package/build/commands/element/custom$$.d.ts +1 -2
- package/build/commands/element/custom$$.d.ts.map +1 -1
- package/build/commands/element/custom$$.js +1 -2
- package/build/commands/element/custom$.d.ts +1 -2
- package/build/commands/element/custom$.d.ts.map +1 -1
- package/build/commands/element/custom$.js +1 -2
- package/build/commands/element/doubleClick.d.ts +1 -1
- package/build/commands/element/doubleClick.d.ts.map +1 -1
- package/build/commands/element/doubleClick.js +1 -1
- package/build/commands/element/dragAndDrop.d.ts +1 -1
- package/build/commands/element/dragAndDrop.d.ts.map +1 -1
- package/build/commands/element/dragAndDrop.js +1 -1
- package/build/commands/element/getAttribute.d.ts +1 -1
- package/build/commands/element/getAttribute.d.ts.map +1 -1
- package/build/commands/element/getAttribute.js +1 -1
- package/build/commands/element/getCSSProperty.d.ts +1 -1
- package/build/commands/element/getCSSProperty.d.ts.map +1 -1
- package/build/commands/element/getCSSProperty.js +1 -1
- package/build/commands/element/getComputedLabel.d.ts +1 -1
- package/build/commands/element/getComputedLabel.d.ts.map +1 -1
- package/build/commands/element/getComputedLabel.js +1 -1
- package/build/commands/element/getComputedRole.d.ts +1 -1
- package/build/commands/element/getComputedRole.d.ts.map +1 -1
- package/build/commands/element/getComputedRole.js +1 -1
- package/build/commands/element/getHTML.d.ts +1 -1
- package/build/commands/element/getHTML.d.ts.map +1 -1
- package/build/commands/element/getHTML.js +1 -1
- package/build/commands/element/getLocation.d.ts +2 -3
- package/build/commands/element/getLocation.d.ts.map +1 -1
- package/build/commands/element/getLocation.js +1 -2
- package/build/commands/element/getProperty.d.ts +1 -1
- package/build/commands/element/getProperty.d.ts.map +1 -1
- package/build/commands/element/getProperty.js +1 -1
- package/build/commands/element/getSize.d.ts +2 -3
- package/build/commands/element/getSize.d.ts.map +1 -1
- package/build/commands/element/getSize.js +1 -2
- package/build/commands/element/getTagName.d.ts +1 -1
- package/build/commands/element/getTagName.d.ts.map +1 -1
- package/build/commands/element/getTagName.js +1 -1
- package/build/commands/element/getText.d.ts +1 -1
- package/build/commands/element/getText.d.ts.map +1 -1
- package/build/commands/element/getText.js +1 -1
- package/build/commands/element/getValue.d.ts +1 -2
- package/build/commands/element/getValue.d.ts.map +1 -1
- package/build/commands/element/getValue.js +1 -2
- package/build/commands/element/isClickable.d.ts +1 -1
- package/build/commands/element/isClickable.d.ts.map +1 -1
- package/build/commands/element/isClickable.js +1 -1
- package/build/commands/element/isDisplayed.d.ts +1 -1
- package/build/commands/element/isDisplayed.d.ts.map +1 -1
- package/build/commands/element/isDisplayed.js +1 -1
- package/build/commands/element/isDisplayedInViewport.d.ts +1 -1
- package/build/commands/element/isDisplayedInViewport.d.ts.map +1 -1
- package/build/commands/element/isDisplayedInViewport.js +1 -1
- package/build/commands/element/isEnabled.d.ts +1 -1
- package/build/commands/element/isEnabled.d.ts.map +1 -1
- package/build/commands/element/isEnabled.js +1 -1
- package/build/commands/element/isEqual.d.ts +1 -1
- package/build/commands/element/isEqual.d.ts.map +1 -1
- package/build/commands/element/isEqual.js +1 -1
- package/build/commands/element/isExisting.d.ts +1 -1
- package/build/commands/element/isExisting.d.ts.map +1 -1
- package/build/commands/element/isExisting.js +1 -1
- package/build/commands/element/isFocused.d.ts +1 -1
- package/build/commands/element/isFocused.d.ts.map +1 -1
- package/build/commands/element/isFocused.js +1 -1
- package/build/commands/element/isSelected.d.ts +1 -1
- package/build/commands/element/isSelected.d.ts.map +1 -1
- package/build/commands/element/isSelected.js +1 -1
- package/build/commands/element/moveTo.d.ts +1 -1
- package/build/commands/element/moveTo.d.ts.map +1 -1
- package/build/commands/element/moveTo.js +1 -1
- package/build/commands/element/nextElement.d.ts +1 -2
- package/build/commands/element/nextElement.d.ts.map +1 -1
- package/build/commands/element/nextElement.js +1 -1
- package/build/commands/element/parentElement.d.ts +1 -2
- package/build/commands/element/parentElement.d.ts.map +1 -1
- package/build/commands/element/parentElement.js +1 -1
- package/build/commands/element/previousElement.d.ts +1 -2
- package/build/commands/element/previousElement.d.ts.map +1 -1
- package/build/commands/element/previousElement.js +1 -1
- package/build/commands/element/react$$.d.ts +1 -1
- package/build/commands/element/react$$.d.ts.map +1 -1
- package/build/commands/element/react$$.js +1 -1
- package/build/commands/element/react$.d.ts +1 -1
- package/build/commands/element/react$.d.ts.map +1 -1
- package/build/commands/element/react$.js +1 -1
- package/build/commands/element/saveScreenshot.d.ts +1 -1
- package/build/commands/element/saveScreenshot.d.ts.map +1 -1
- package/build/commands/element/saveScreenshot.js +1 -1
- package/build/commands/element/scrollIntoView.d.ts +1 -1
- package/build/commands/element/scrollIntoView.d.ts.map +1 -1
- package/build/commands/element/scrollIntoView.js +1 -1
- package/build/commands/element/selectByAttribute.d.ts +1 -1
- package/build/commands/element/selectByAttribute.d.ts.map +1 -1
- package/build/commands/element/selectByAttribute.js +1 -1
- package/build/commands/element/selectByIndex.d.ts +1 -1
- package/build/commands/element/selectByIndex.d.ts.map +1 -1
- package/build/commands/element/selectByIndex.js +1 -1
- package/build/commands/element/selectByVisibleText.d.ts +1 -1
- package/build/commands/element/selectByVisibleText.d.ts.map +1 -1
- package/build/commands/element/selectByVisibleText.js +1 -1
- package/build/commands/element/setValue.d.ts +1 -1
- package/build/commands/element/setValue.d.ts.map +1 -1
- package/build/commands/element/setValue.js +1 -1
- package/build/commands/element/shadow$$.d.ts +1 -1
- package/build/commands/element/shadow$$.d.ts.map +1 -1
- package/build/commands/element/shadow$$.js +1 -1
- package/build/commands/element/shadow$.d.ts +1 -1
- package/build/commands/element/shadow$.d.ts.map +1 -1
- package/build/commands/element/shadow$.js +1 -1
- package/build/commands/element/touchAction.d.ts +1 -1
- package/build/commands/element/touchAction.d.ts.map +1 -1
- package/build/commands/element/touchAction.js +1 -1
- package/build/commands/element/waitForClickable.d.ts +1 -1
- package/build/commands/element/waitForClickable.d.ts.map +1 -1
- package/build/commands/element/waitForClickable.js +1 -1
- package/build/commands/element/waitForDisplayed.d.ts +1 -1
- package/build/commands/element/waitForDisplayed.d.ts.map +1 -1
- package/build/commands/element/waitForDisplayed.js +1 -1
- package/build/commands/element/waitForEnabled.d.ts +1 -1
- package/build/commands/element/waitForEnabled.d.ts.map +1 -1
- package/build/commands/element/waitForEnabled.js +1 -1
- package/build/commands/element/waitForExist.d.ts +1 -1
- package/build/commands/element/waitForExist.d.ts.map +1 -1
- package/build/commands/element/waitForExist.js +1 -1
- package/build/commands/element/waitUntil.d.ts +2 -2
- package/build/commands/element/waitUntil.d.ts.map +1 -1
- package/build/commands/element/waitUntil.js +2 -2
- package/build/commands/element.d.ts +48 -49
- package/build/commands/element.d.ts.map +1 -1
- package/build/commands/element.js +48 -49
- package/build/multiremote.d.ts +3 -11
- package/build/multiremote.d.ts.map +1 -1
- package/build/multiremote.js +27 -13
- package/build/types.d.ts +43 -63
- package/build/types.d.ts.map +1 -1
- package/build/utils/actions/pointer.d.ts +1 -1
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/index.js +5 -2
- package/package.json +10 -10
|
@@ -55,5 +55,5 @@ import type { Selector, ElementArray } from '../../types.js';
|
|
|
55
55
|
* @type utility
|
|
56
56
|
*
|
|
57
57
|
*/
|
|
58
|
-
export
|
|
58
|
+
export declare function $$(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector | ElementReference[] | WebdriverIO.Element[]): Promise<ElementArray>;
|
|
59
59
|
//# sourceMappingURL=$$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAIvD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,
|
|
1
|
+
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAIvD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAsB,EAAE,CACpB,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,GAAG,gBAAgB,EAAE,GAAG,WAAW,CAAC,OAAO,EAAE,yBAOlE"}
|
|
@@ -55,7 +55,7 @@ import { getElements } from '../../utils/getElementObject.js';
|
|
|
55
55
|
* @type utility
|
|
56
56
|
*
|
|
57
57
|
*/
|
|
58
|
-
export
|
|
58
|
+
export async function $$(selector) {
|
|
59
59
|
const res = Array.isArray(selector)
|
|
60
60
|
? selector
|
|
61
61
|
: await findElements.call(this, selector);
|
|
@@ -73,5 +73,5 @@ import type { Selector } from '../../types.js';
|
|
|
73
73
|
* @type utility
|
|
74
74
|
*
|
|
75
75
|
*/
|
|
76
|
-
export
|
|
76
|
+
export declare function $(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector): Promise<WebdriverIO.Element>;
|
|
77
77
|
//# sourceMappingURL=$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,
|
|
1
|
+
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAsB,CAAC,CACnB,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,GACnB,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAc9B"}
|
|
@@ -75,7 +75,7 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
75
75
|
* @type utility
|
|
76
76
|
*
|
|
77
77
|
*/
|
|
78
|
-
export
|
|
78
|
+
export async function $(selector) {
|
|
79
79
|
/**
|
|
80
80
|
* convert protocol result into WebdriverIO element
|
|
81
81
|
* e.g. when element was fetched with `getActiveElement`
|
|
@@ -148,7 +148,7 @@ import { KeyAction, PointerAction, WheelAction } from '../../utils/actions/index
|
|
|
148
148
|
* @type utility
|
|
149
149
|
*
|
|
150
150
|
*/
|
|
151
|
-
export
|
|
152
|
-
export
|
|
153
|
-
export
|
|
151
|
+
export declare function action(this: WebdriverIO.Browser, type: 'key', opts?: Pick<BaseActionParams, 'id'>): KeyAction;
|
|
152
|
+
export declare function action(this: WebdriverIO.Browser, type: 'pointer', opts?: BaseActionParams): PointerAction;
|
|
153
|
+
export declare function action(this: WebdriverIO.Browser, type: 'wheel', opts?: Pick<BaseActionParams, 'id'>): WheelAction;
|
|
154
154
|
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmJG;AACH,
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmJG;AACH,wBAAgB,MAAM,CAClB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,KAAK,EACX,IAAI,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,GACpC,SAAS,CAAA;AACZ,wBAAgB,MAAM,CAClB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,gBAAgB,GACxB,aAAa,CAAA;AAChB,wBAAgB,MAAM,CAClB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,OAAO,EACb,IAAI,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,GACpC,WAAW,CAAA"}
|
|
@@ -25,5 +25,5 @@ import type { KeyAction, PointerAction, WheelAction } from '../../utils/actions/
|
|
|
25
25
|
* @type utility
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export declare function actions(this: WebdriverIO.Browser, actions: (KeyAction | PointerAction | WheelAction)[]): Promise<void>;
|
|
29
29
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,CAAC,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC,EAAE,GACrD,OAAO,CAAC,IAAI,CAAC,CAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/call.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,
|
|
1
|
+
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/call.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAG,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMpD"}
|
|
@@ -22,5 +22,5 @@ import type { ElementArray } from '../../types.js';
|
|
|
22
22
|
* @param {Any} strategyArguments
|
|
23
23
|
* @return {ElementArray}
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export declare function custom$$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<ElementArray>;
|
|
26
26
|
//# sourceMappingURL=custom$$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAmD,MAAM,gBAAgB,CAAA;AAEnG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,
|
|
1
|
+
{"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAmD,MAAM,gBAAgB,CAAA;AAEnG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,QAAQ,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,GAC5B,OAAO,CAAC,YAAY,CAAC,CAuBvB"}
|
|
@@ -24,7 +24,7 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
24
24
|
* @param {Any} strategyArguments
|
|
25
25
|
* @return {ElementArray}
|
|
26
26
|
*/
|
|
27
|
-
export
|
|
27
|
+
export async function custom$$(strategyName, ...strategyArguments) {
|
|
28
28
|
const strategy = this.strategies.get(strategyName);
|
|
29
29
|
if (!strategy) {
|
|
30
30
|
throw Error('No strategy found for ' + strategyName);
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* @param {Any} strategyArguments
|
|
22
22
|
* @return {Element}
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export declare function custom$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
|
|
25
25
|
//# sourceMappingURL=custom$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,
|
|
1
|
+
{"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,gCA0B9B"}
|
|
@@ -23,7 +23,7 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
23
23
|
* @param {Any} strategyArguments
|
|
24
24
|
* @return {Element}
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export async function custom$(strategyName, ...strategyArguments) {
|
|
27
27
|
const strategy = this.strategies.get(strategyName);
|
|
28
28
|
if (!strategy) {
|
|
29
29
|
throw Error('No strategy found for ' + strategyName);
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
* @type utility
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export declare function debug(this: WebdriverIO.Browser, commandTimeout?: number): Promise<unknown>;
|
|
32
32
|
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/debug.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/debug.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,KAAK,CACjB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,cAAc,SAAO,oBAgFxB"}
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
* @type cookie
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export declare function deleteCookies(this: WebdriverIO.Browser, names?: string | string[]): Promise<void> | Promise<void[]>;
|
|
45
45
|
//# sourceMappingURL=deleteCookies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/deleteCookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,
|
|
1
|
+
{"version":3,"file":"deleteCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/deleteCookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,aAAa,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,mCAa5B"}
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
* @type protocol
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
|
-
export
|
|
36
|
+
export declare function execute<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element | WebdriverIO.MultiRemoteBrowser, script: string | ((...innerArgs: InnerArguments) => ReturnValue), ...args: InnerArguments): Promise<ReturnValue>;
|
|
37
37
|
//# sourceMappingURL=execute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/execute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,
|
|
1
|
+
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/execute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EAC7D,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAChF,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS,EAAE,cAAc,KAAK,WAAW,CAAC,EAChE,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAiBtB"}
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
* @type protocol
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export declare function executeAsync<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element, script: string | ((...args: [...innerArgs: InnerArguments, callback: (result?: ReturnValue) => void]) => void), ...args: InnerArguments): Promise<ReturnValue>;
|
|
45
45
|
//# sourceMappingURL=executeAsync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,
|
|
1
|
+
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EAClE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EACjG,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAiBtB"}
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
* @uses webdriver/getAllCookies
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
|
-
export
|
|
33
|
+
export declare function getCookies(this: WebdriverIO.Browser, names?: string | string[]): Promise<import("@wdio/protocols").Cookie[]>;
|
|
34
34
|
//# sourceMappingURL=getCookies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getCookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,
|
|
1
|
+
{"version":3,"file":"getCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getCookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,+CAc5B"}
|
|
@@ -34,5 +34,5 @@ import type { Browser as PuppeteerBrowser } from 'puppeteer-core/lib/esm/puppete
|
|
|
34
34
|
*
|
|
35
35
|
* @return {PuppeteerBrowser} initiated puppeteer instance connected to the browser
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export declare function getPuppeteer(this: WebdriverIO.Browser): Promise<PuppeteerBrowser>;
|
|
38
38
|
//# sourceMappingURL=getPuppeteer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAOlG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,
|
|
1
|
+
{"version":3,"file":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAOlG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,6BAgG5D"}
|
|
@@ -37,7 +37,7 @@ const log = logger('webdriverio');
|
|
|
37
37
|
*
|
|
38
38
|
* @return {PuppeteerBrowser} initiated puppeteer instance connected to the browser
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
40
|
+
export async function getPuppeteer() {
|
|
41
41
|
/**
|
|
42
42
|
* check if we already connected Puppeteer and if so return
|
|
43
43
|
* that instance
|
|
@@ -20,6 +20,6 @@ interface BrowserSize {
|
|
|
20
20
|
* @type window
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export declare function getWindowSize(this: WebdriverIO.Browser): Promise<BrowserSize>;
|
|
24
24
|
export {};
|
|
25
25
|
//# sourceMappingURL=getWindowSize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWindowSize.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getWindowSize.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,
|
|
1
|
+
{"version":3,"file":"getWindowSize.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getWindowSize.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,wBAS5D"}
|
|
@@ -17,7 +17,7 @@ import { getBrowserObject } from '../../utils/index.js';
|
|
|
17
17
|
* @type window
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export async function getWindowSize() {
|
|
21
21
|
const browser = getBrowserObject(this);
|
|
22
22
|
if (!browser.isW3C) {
|
|
23
23
|
return browser._getWindowSize();
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
* @see https://w3c.github.io/webdriver/#dispatching-actions
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export declare function keys(this: WebdriverIO.Browser, value: string | string[]): Promise<void>;
|
|
38
38
|
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/keys.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,IAAI,CAChB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,iBAiC3B"}
|
|
@@ -35,7 +35,7 @@ import { checkUnicode } from '../../utils/index.js';
|
|
|
35
35
|
* @see https://w3c.github.io/webdriver/#dispatching-actions
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
|
-
export
|
|
38
|
+
export function keys(value) {
|
|
39
39
|
let keySequence = [];
|
|
40
40
|
/**
|
|
41
41
|
* replace key with corresponding unicode character
|
|
@@ -108,5 +108,5 @@ export declare const SESSION_MOCKS: Record<string, Set<Interception>>;
|
|
|
108
108
|
* @type utility
|
|
109
109
|
*
|
|
110
110
|
*/
|
|
111
|
-
export
|
|
111
|
+
export declare function mock(this: WebdriverIO.Browser, url: string | RegExp, filterOptions?: MockFilterOptions): Promise<Mock>;
|
|
112
112
|
//# sourceMappingURL=mock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAA;AAIjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAE1E,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC,CAAM,CAAA;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,
|
|
1
|
+
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAA;AAIjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAE1E,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC,CAAM,CAAA;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,wBAAsB,IAAI,CACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,aAAa,CAAC,EAAE,iBAAiB,iBA6DpC"}
|
|
@@ -108,7 +108,7 @@ export const SESSION_MOCKS = {};
|
|
|
108
108
|
* @type utility
|
|
109
109
|
*
|
|
110
110
|
*/
|
|
111
|
-
export
|
|
111
|
+
export async function mock(url, filterOptions) {
|
|
112
112
|
const NetworkInterception = this.isSauce ? WebDriverNetworkInterception : DevtoolsNetworkInterception;
|
|
113
113
|
if (!this.isSauce) {
|
|
114
114
|
await this.getPuppeteer();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockClearAll.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mockClearAll.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,
|
|
1
|
+
{"version":3,"file":"mockClearAll.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mockClearAll.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,YAAY,kBAOjC"}
|
|
@@ -27,7 +27,7 @@ const log = logger('webdriverio:mockClearAll');
|
|
|
27
27
|
*
|
|
28
28
|
* @alias browser.mockClearAll
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export async function mockClearAll() {
|
|
31
31
|
for (const [handle, mocks] of Object.entries(SESSION_MOCKS)) {
|
|
32
32
|
log.trace(`Clearing mocks for ${handle}`);
|
|
33
33
|
for (const mock of mocks) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockRestoreAll.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mockRestoreAll.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,
|
|
1
|
+
{"version":3,"file":"mockRestoreAll.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/mockRestoreAll.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,cAAc,kBAOnC"}
|
|
@@ -25,7 +25,7 @@ const log = logger('webdriverio:mockRestoreAll');
|
|
|
25
25
|
*
|
|
26
26
|
* @alias browser.mockRestoreAll
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export async function mockRestoreAll() {
|
|
29
29
|
for (const [handle, mocks] of Object.entries(SESSION_MOCKS)) {
|
|
30
30
|
log.trace(`Clearing mocks for ${handle}`);
|
|
31
31
|
for (const mock of mocks) {
|
|
@@ -37,5 +37,5 @@ import type { NewWindowOptions } from '../../types.js';
|
|
|
37
37
|
* @alias browser.newWindow
|
|
38
38
|
* @type window
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
40
|
+
export declare function newWindow(this: WebdriverIO.Browser, url: string, { windowName, windowFeatures }?: NewWindowOptions): Promise<string>;
|
|
41
41
|
//# sourceMappingURL=newWindow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/newWindow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,
|
|
1
|
+
{"version":3,"file":"newWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/newWindow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,SAAS,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,EACX,EAAE,UAAe,EAAE,cAAmB,EAAE,GAAE,gBAAqB,mBAyClE"}
|
|
@@ -39,7 +39,7 @@ const WAIT_FOR_NEW_HANDLE_TIMEOUT = 3000;
|
|
|
39
39
|
* @alias browser.newWindow
|
|
40
40
|
* @type window
|
|
41
41
|
*/
|
|
42
|
-
export
|
|
42
|
+
export async function newWindow(url, { windowName = '', windowFeatures = '' } = {}) {
|
|
43
43
|
/**
|
|
44
44
|
* parameter check
|
|
45
45
|
*/
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
* @type utility
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export declare function pause(this: WebdriverIO.Browser, milliseconds?: number): Promise<unknown>;
|
|
23
23
|
//# sourceMappingURL=pause.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/pause.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,
|
|
1
|
+
{"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/pause.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,KAAK,CACjB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,SAAO,oBAGtB"}
|
|
@@ -32,5 +32,5 @@ import type { ReactSelectorOptions, ElementArray } from '../../types.js';
|
|
|
32
32
|
* @return {ElementArray}
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export declare function react$$(this: WebdriverIO.Browser, selector: string, { props, state }?: ReactSelectorOptions): Promise<ElementArray>;
|
|
36
36
|
//# sourceMappingURL=react$$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$$.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,
|
|
1
|
+
{"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$$.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,yBAexD"}
|
|
@@ -38,7 +38,7 @@ let resqScript;
|
|
|
38
38
|
* @return {ElementArray}
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export async function react$$(selector, { props = {}, state = {} } = {}) {
|
|
42
42
|
if (!resqScript) {
|
|
43
43
|
const resqScriptPath = url.fileURLToPath(await resolve('resq', import.meta.url));
|
|
44
44
|
resqScript = (await fs.readFile(resqScriptPath)).toString();
|
|
@@ -42,5 +42,5 @@ import type { ReactSelectorOptions } from '../../types.js';
|
|
|
42
42
|
* @return {Element}
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
|
-
export
|
|
45
|
+
export declare function react$(this: WebdriverIO.Browser, selector: string, { props, state }?: ReactSelectorOptions): Promise<WebdriverIO.Element>;
|
|
46
46
|
//# sourceMappingURL=react$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAI1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,
|
|
1
|
+
{"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAI1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,MAAM,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,gCAcxD"}
|
|
@@ -47,7 +47,7 @@ let resqScript;
|
|
|
47
47
|
* @return {Element}
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
|
-
export
|
|
50
|
+
export async function react$(selector, { props = {}, state = {} } = {}) {
|
|
51
51
|
if (!resqScript) {
|
|
52
52
|
const resqScriptPath = url.fileURLToPath(await resolve('resq', import.meta.url));
|
|
53
53
|
resqScript = (await fs.readFile(resqScriptPath)).toString();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reloadSession.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/reloadSession.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,
|
|
1
|
+
{"version":3,"file":"reloadSession.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/reloadSession.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBA+B7D"}
|
|
@@ -21,7 +21,7 @@ const log = logger('webdriverio');
|
|
|
21
21
|
* @type utility
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export async function reloadSession() {
|
|
25
25
|
const oldSessionId = this.sessionId;
|
|
26
26
|
/**
|
|
27
27
|
* end current running session, if session already gone suppress exceptions
|
|
@@ -41,6 +41,6 @@ type PDFPrintOptions = {
|
|
|
41
41
|
* @type utility
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export declare function savePDF(this: WebdriverIO.Browser, filepath: string, options?: PDFPrintOptions): Promise<Buffer>;
|
|
45
45
|
export {};
|
|
46
46
|
//# sourceMappingURL=savePDF.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"savePDF.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/savePDF.ts"],"names":[],"mappings":";AAGA,KAAK,eAAe,GAAG;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,
|
|
1
|
+
{"version":3,"file":"savePDF.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/savePDF.ts"],"names":[],"mappings":";AAGA,KAAK,eAAe,GAAG;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,eAAe,mBAmB5B"}
|