webdriverio 8.0.13 → 8.0.15
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/$.d.ts +1 -1
- package/build/commands/browser/$.d.ts.map +1 -1
- package/build/commands/browser/action.d.ts +2 -1
- package/build/commands/browser/action.d.ts.map +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/custom$$.d.ts +1 -1
- package/build/commands/browser/custom$$.d.ts.map +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/mock.d.ts +2 -2
- package/build/commands/browser/mock.d.ts.map +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/react$$.d.ts +1 -1
- package/build/commands/browser/react$$.d.ts.map +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/savePDF.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/touchAction.d.ts +1 -1
- package/build/commands/browser/touchAction.d.ts.map +1 -1
- package/build/commands/browser/uploadFile.js +2 -2
- 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/constant.d.ts.map +1 -1
- package/build/commands/constant.js +6 -3
- 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 -1
- package/build/commands/element/custom$$.d.ts.map +1 -1
- package/build/commands/element/dragAndDrop.d.ts.map +1 -1
- package/build/commands/element/dragAndDrop.js +3 -6
- package/build/commands/element/getSize.d.ts.map +1 -1
- package/build/commands/element/getSize.js +3 -7
- package/build/commands/element/nextElement.d.ts +2 -1
- package/build/commands/element/nextElement.d.ts.map +1 -1
- package/build/commands/element/parentElement.d.ts +2 -1
- package/build/commands/element/parentElement.d.ts.map +1 -1
- package/build/commands/element/previousElement.d.ts +2 -1
- package/build/commands/element/previousElement.d.ts.map +1 -1
- package/build/commands/element/react$$.d.ts +2 -2
- package/build/commands/element/react$$.d.ts.map +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/scrollIntoView.d.ts.map +1 -1
- package/build/commands/element/scrollIntoView.js +23 -8
- package/build/commands/element/touchAction.d.ts +1 -1
- package/build/commands/element/touchAction.d.ts.map +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/waitForDisplayed.d.ts +1 -1
- package/build/commands/element/waitForDisplayed.d.ts.map +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/waitForExist.d.ts +1 -1
- package/build/commands/element/waitForExist.d.ts.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/multiremote.js +1 -1
- package/build/scripts/isElementClickable.js +1 -1
- package/build/scripts/isElementDisplayed.d.ts.map +1 -1
- package/build/scripts/isElementDisplayed.js +14 -12
- package/build/types.d.ts +6 -6
- package/build/types.d.ts.map +1 -1
- package/build/utils/Timer.js +2 -2
- package/build/utils/actions/key.d.ts +2 -1
- package/build/utils/actions/key.d.ts.map +1 -1
- package/build/utils/actions/pointer.d.ts +4 -3
- package/build/utils/actions/pointer.d.ts.map +1 -1
- package/build/utils/actions/wheel.d.ts +3 -2
- package/build/utils/actions/wheel.d.ts.map +1 -1
- package/build/utils/detectBackend.js +1 -1
- package/build/utils/findStrategy.d.ts.map +1 -1
- package/build/utils/findStrategy.js +4 -3
- package/build/utils/index.js +7 -7
- package/build/utils/interception/devtools.d.ts +3 -3
- package/build/utils/interception/devtools.d.ts.map +1 -1
- package/build/utils/interception/index.d.ts +3 -3
- package/build/utils/interception/index.d.ts.map +1 -1
- package/build/utils/interception/types.d.ts +1 -1
- package/build/utils/interception/types.d.ts.map +1 -1
- package/build/utils/refetchElement.js +1 -1
- package/build/utils/thirdParty/querySelectorShadowDom.js +3 -2
- package/package.json +13 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ElementReference } from '@wdio/protocols';
|
|
2
|
-
import type { Selector, ElementArray } from '../../types';
|
|
2
|
+
import type { Selector, ElementArray } from '../../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* The `$$` command is a short way to call the [`findElements`](/docs/api/webdriver#findelements) command in order
|
|
5
5
|
* to fetch multiple elements on the page. It returns an array with element results that will have an
|
|
@@ -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,
|
|
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,wBAA8B,EAAE,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,GAAG,gBAAgB,EAAE,GAAG,WAAW,CAAC,OAAO,EAAE,yBAOlE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Selector } from '../../types';
|
|
1
|
+
import type { Selector } from '../../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* The `$` command is a short way to call the [`findElement`](/docs/api/webdriver#findelement) command in order
|
|
4
4
|
* to fetch a single element on the page. It returns an object that with an extended prototype to call
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
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,wBAA8B,CAAC,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,gCAerB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BaseActionParams } from '../../utils/actions/index.js';
|
|
2
|
+
import { KeyAction, PointerAction, WheelAction } from '../../utils/actions/index.js';
|
|
2
3
|
/**
|
|
3
4
|
* The action command is a low-level interface for providing virtualized device input actions to the web browser.
|
|
4
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,
|
|
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,MAAM,CAAC,OAAO,UAAU,MAAM,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,KAAK,EACX,IAAI,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,GACpC,SAAS,CAAA;AACZ,MAAM,CAAC,OAAO,UAAU,MAAM,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,gBAAgB,GACxB,aAAa,CAAA;AAChB,MAAM,CAAC,OAAO,UAAU,MAAM,CAC1B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,OAAO,EACb,IAAI,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,GACpC,WAAW,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyAction, PointerAction, WheelAction } from '../../utils/actions/index.js';
|
|
1
|
+
import type { KeyAction, PointerAction, WheelAction } from '../../utils/actions/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Allows to run multiple action interaction at once, e.g. to simulate a pinch zoom.
|
|
4
4
|
* For more information on the `action` command, check out the [docs](/docs/api/browser/action).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;
|
|
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,wBAA8B,OAAO,CACjC,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":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/custom$$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAmD,MAAM,
|
|
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,wBAA8B,QAAQ,CAClC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,GAC5B,OAAO,CAAC,YAAY,CAAC,CAuBvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Browser as PuppeteerBrowser } from 'puppeteer-core/lib/cjs/puppeteer/api/Browser.js';
|
|
1
|
+
import type { Browser as PuppeteerBrowser } from 'puppeteer-core/lib/cjs/puppeteer/api/Browser.js';
|
|
2
2
|
/**
|
|
3
3
|
* Get the [Puppeteer Browser instance](https://pptr.dev/#?product=Puppeteer&version=v5.1.0&show=api-class-browser)
|
|
4
4
|
* to run commands with Puppeteer. Note that all Puppeteer commands are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;
|
|
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,wBAA8B,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,6BAgGpE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type Interception from '../../utils/interception/index.js';
|
|
2
|
-
import type { Mock } from '../../types';
|
|
3
|
-
import type { MockFilterOptions } from '../../utils/interception/types';
|
|
2
|
+
import type { Mock } from '../../types.js';
|
|
3
|
+
import type { MockFilterOptions } from '../../utils/interception/types.js';
|
|
4
4
|
export declare const SESSION_MOCKS: Record<string, Set<Interception>>;
|
|
5
5
|
/**
|
|
6
6
|
* Mock the response of a request. You can define a mock based on a matching
|
|
@@ -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,
|
|
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,wBAA8B,IAAI,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,aAAa,CAAC,EAAE,iBAAiB,iBA6DpC"}
|
|
@@ -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,
|
|
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,wBAA8B,SAAS,CACnC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,EACX,EAAE,UAAe,EAAE,cAAmB,EAAE,GAAE,gBAAqB,mBAyClE"}
|
|
@@ -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,
|
|
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,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,yBAexD"}
|
|
@@ -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,
|
|
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,wBAA8B,MAAM,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,gCAcxD"}
|
|
@@ -33,7 +33,7 @@ export default async function savePDF(filepath, options) {
|
|
|
33
33
|
/**
|
|
34
34
|
* type check
|
|
35
35
|
*/
|
|
36
|
-
if (typeof filepath
|
|
36
|
+
if (typeof filepath !== 'string' || !filepath.endsWith('.pdf')) {
|
|
37
37
|
throw new Error('savePDF expects a filepath of type string and ".pdf" file ending');
|
|
38
38
|
}
|
|
39
39
|
const absoluteFilepath = getAbsoluteFilepath(filepath);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ThrottleOptions } from '../../utils/interception/types';
|
|
1
|
+
import type { ThrottleOptions } from '../../utils/interception/types.js';
|
|
2
2
|
export default function throttle(this: WebdriverIO.Browser, params: ThrottleOptions): Promise<null>;
|
|
3
3
|
//# sourceMappingURL=throttle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/throttle.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/throttle.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAmExE,wBAA8B,QAAQ,CAClC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,EAAE,eAAe,iBA0C1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"touchAction.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/touchAction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"touchAction.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/touchAction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,YAAY,iBAGxB"}
|
|
@@ -44,8 +44,8 @@ export default async function uploadFile(localPath) {
|
|
|
44
44
|
if (typeof this.file !== 'function') {
|
|
45
45
|
throw new Error(`The uploadFile command is not available in ${this.capabilities.browserName}`);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const zipData = [];
|
|
48
|
+
const source = fs.createReadStream(localPath);
|
|
49
49
|
return new Promise((resolve, reject) => {
|
|
50
50
|
archiver('zip')
|
|
51
51
|
.on('error', (err) => reject(err))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitUntil.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/waitUntil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"waitUntil.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/waitUntil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,SAAS,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAC3C,EACI,OAAqC,EACrC,QAAuC,EACvC,UAAU,EACb,GAAE,OAAO,CAAC,gBAAgB,CAAM,GAClC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CA4BtB"}
|
|
@@ -53,7 +53,7 @@ export default function waitUntil(condition, { timeout = this.options.waitforTim
|
|
|
53
53
|
interval = this.options.waitforInterval;
|
|
54
54
|
}
|
|
55
55
|
const fn = condition.bind(this);
|
|
56
|
-
|
|
56
|
+
const timer = new Timer(interval, timeout, fn, true);
|
|
57
57
|
return timer.catch((e) => {
|
|
58
58
|
if (e.message === 'timeout') {
|
|
59
59
|
if (typeof timeoutMsg === 'string') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/commands/constant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AASzD,UAAU,oBAAqB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,gBAAgB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,oBAAoB,CAAA;CACjC;AAED,eAAO,MAAM,UAAU,UACZ,YAAY,OAAO,GAAG,mBAAmB,WACvC,YAAY,EAAE,KACxB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/commands/constant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AASzD,UAAU,oBAAqB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,gBAAgB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,oBAAoB,CAAA;CACjC;AAED,eAAO,MAAM,UAAU,UACZ,YAAY,OAAO,GAAG,mBAAmB,WACvC,YAAY,EAAE,KACxB,gBAAgB,EA4ClB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,WAAY,gBAAgB,SA8B1D,CAAA;AAED,eAAO,MAAM,WAAW,SACd,YAAY,OAAO,GAAG,mBAAmB,WACtC,YAAY,kBAgBxB,CAAA"}
|
|
@@ -25,12 +25,15 @@ export const formatArgs = function (scope, actions) {
|
|
|
25
25
|
if (POS_ACTIONS.includes(action.action) && formattedAction.options && actionElement) {
|
|
26
26
|
formattedAction.options.element = actionElement;
|
|
27
27
|
}
|
|
28
|
-
if (formattedAction.options && typeof action.x === 'number' && isFinite(action.x))
|
|
28
|
+
if (formattedAction.options && typeof action.x === 'number' && isFinite(action.x)) {
|
|
29
29
|
formattedAction.options.x = action.x;
|
|
30
|
-
|
|
30
|
+
}
|
|
31
|
+
if (formattedAction.options && typeof action.y === 'number' && isFinite(action.y)) {
|
|
31
32
|
formattedAction.options.y = action.y;
|
|
32
|
-
|
|
33
|
+
}
|
|
34
|
+
if (formattedAction.options && action.ms) {
|
|
33
35
|
formattedAction.options.ms = action.ms;
|
|
36
|
+
}
|
|
34
37
|
/**
|
|
35
38
|
* remove options property if empty
|
|
36
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../src/commands/element/click.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../src/commands/element/click.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,wBAA8B,KAAK,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,YAAY,iBAyDzB"}
|
|
@@ -86,7 +86,7 @@ export default async function click(options) {
|
|
|
86
86
|
throw new TypeError('Options must be an object');
|
|
87
87
|
}
|
|
88
88
|
let button = (options.button || 0);
|
|
89
|
-
|
|
89
|
+
const { x: xoffset = 0, y: yoffset = 0, skipRelease = false } = options || {};
|
|
90
90
|
if (typeof xoffset !== 'number'
|
|
91
91
|
|| typeof yoffset !== 'number'
|
|
92
92
|
|| !Number.isInteger(xoffset)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/custom$$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAA0B,MAAM,
|
|
1
|
+
{"version":3,"file":"custom$$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/custom$$.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAA0B,MAAM,gBAAgB,CAAA;AAE1E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAe,QAAQ,CACnB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,GAC5B,OAAO,CAAC,YAAY,CAAC,CAkCvB;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/commands/element/dragAndDrop.ts"],"names":[],"mappings":"AAQA,KAAK,kBAAkB,GAAG;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAA8B,WAAW,CACrC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,EAAE,WAAW,CAAC,OAAO,GAAG,kBAAkB,EAChD,EAAE,QAAa,EAAE,GAAE,kBAAuB,
|
|
1
|
+
{"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/commands/element/dragAndDrop.ts"],"names":[],"mappings":"AAQA,KAAK,kBAAkB,GAAG;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAA8B,WAAW,CACrC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,EAAE,WAAW,CAAC,OAAO,GAAG,kBAAkB,EAChD,EAAE,QAAa,EAAE,GAAE,kBAAuB,iBAmE7C"}
|
|
@@ -63,12 +63,9 @@ export default async function dragAndDrop(target, { duration = 10 } = {}) {
|
|
|
63
63
|
if (!this.isW3C) {
|
|
64
64
|
await this.moveTo();
|
|
65
65
|
await this.buttonDown(ACTION_BUTTON);
|
|
66
|
-
|
|
67
|
-
await moveToElement.moveTo()
|
|
68
|
-
|
|
69
|
-
else {
|
|
70
|
-
await this.moveToElement(null, moveToCoordinates.x, moveToCoordinates.y);
|
|
71
|
-
}
|
|
66
|
+
isMovingToElement
|
|
67
|
+
? await moveToElement.moveTo()
|
|
68
|
+
: await this.moveToElement(null, moveToCoordinates.x, moveToCoordinates.y);
|
|
72
69
|
await sleep(duration);
|
|
73
70
|
return this.buttonUp(ACTION_BUTTON);
|
|
74
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSize.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getSize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,MAAM,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;AAExD,iBAAS,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5D,iBAAS,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"getSize.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getSize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,MAAM,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;AAExD,iBAAS,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5D,iBAAS,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AA+CtF,eAAe,OAAO,CAAA"}
|
|
@@ -27,13 +27,9 @@ import { getElementRect } from '../../utils/index.js';
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
async function getSize(prop) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
rect = await this.getElementSize(this.elementId);
|
|
36
|
-
}
|
|
30
|
+
const rect = this.isW3C
|
|
31
|
+
? await getElementRect(this)
|
|
32
|
+
: await this.getElementSize(this.elementId);
|
|
37
33
|
if (prop && typeof rect[prop] === 'number') {
|
|
38
34
|
return rect[prop];
|
|
39
35
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChainablePromiseElement } from '../../types.js';
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Returns the next sibling element of the selected DOM-element.
|
|
@@ -21,5 +22,5 @@
|
|
|
21
22
|
* @return {Element}
|
|
22
23
|
* @type utility
|
|
23
24
|
*/
|
|
24
|
-
export default function nextElement(this: WebdriverIO.Element):
|
|
25
|
+
export default function nextElement(this: WebdriverIO.Element): ChainablePromiseElement<WebdriverIO.Element>;
|
|
25
26
|
//# sourceMappingURL=nextElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/nextElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"nextElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/nextElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,CAI5G"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChainablePromiseElement } from '../../types.js';
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Returns the parent element of the selected DOM-element.
|
|
@@ -21,5 +22,5 @@
|
|
|
21
22
|
* @return {Element}
|
|
22
23
|
* @type utility
|
|
23
24
|
*/
|
|
24
|
-
export default function parentElement(this: WebdriverIO.Element):
|
|
25
|
+
export default function parentElement(this: WebdriverIO.Element): ChainablePromiseElement<WebdriverIO.Element>;
|
|
25
26
|
//# sourceMappingURL=parentElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parentElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/parentElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"parentElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/parentElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,CAI9G"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChainablePromiseElement } from '../../types.js';
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Returns the previous sibling element of the selected DOM-element.
|
|
@@ -21,5 +22,5 @@
|
|
|
21
22
|
* @return {Element}
|
|
22
23
|
* @type utility
|
|
23
24
|
*/
|
|
24
|
-
export default function previousElement(this: WebdriverIO.Element):
|
|
25
|
+
export default function previousElement(this: WebdriverIO.Element): ChainablePromiseElement<WebdriverIO.Element>;
|
|
25
26
|
//# sourceMappingURL=previousElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previousElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/previousElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"previousElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/previousElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,uBAAuB,CAAC,WAAW,CAAC,OAAO,CAAC,CAIhH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactSelectorOptions } from '../../types';
|
|
1
|
+
import type { ReactSelectorOptions } from '../../types.js';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* The `react$$` command is a useful command to query multiple React Components
|
|
@@ -32,5 +32,5 @@ import type { ReactSelectorOptions } from '../../types';
|
|
|
32
32
|
* @return {ElementArray}
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
|
-
export default function react$$(this: WebdriverIO.Element, selector: string, { props, state }?: ReactSelectorOptions): Promise<import("../../types").ElementArray>;
|
|
35
|
+
export default function react$$(this: WebdriverIO.Element, selector: string, { props, state }?: ReactSelectorOptions): Promise<import("../../types.js").ElementArray>;
|
|
36
36
|
//# sourceMappingURL=react$$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/react$$.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/react$$.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAI1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,kDAgBxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/react$.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/react$.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAI1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAA8B,MAAM,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,gCAexD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollIntoView.d.ts","sourceRoot":"","sources":["../../../src/commands/element/scrollIntoView.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrollIntoView.d.ts","sourceRoot":"","sources":["../../../src/commands/element/scrollIntoView.ts"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAA8B,cAAc,CACxC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,GAAE,qBAAqB,GAAG,OAA+C,iBA6CnF"}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
import logger from '@wdio/logger';
|
|
1
2
|
import { ELEMENT_KEY } from '../../constants.js';
|
|
2
3
|
import { getBrowserObject } from '../../utils/index.js';
|
|
4
|
+
const log = logger('webdriverio');
|
|
5
|
+
function scrollIntoViewWeb(options = { block: 'start', inline: 'nearest' }) {
|
|
6
|
+
const browser = getBrowserObject(this);
|
|
7
|
+
return browser.execute((elem, options) => elem.scrollIntoView(options), {
|
|
8
|
+
[ELEMENT_KEY]: this.elementId,
|
|
9
|
+
ELEMENT: this.elementId, // jsonwp compatible
|
|
10
|
+
}, options);
|
|
11
|
+
}
|
|
3
12
|
/**
|
|
4
13
|
*
|
|
5
14
|
* Scroll element into viewport ([MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)).
|
|
@@ -23,12 +32,11 @@ import { getBrowserObject } from '../../utils/index.js';
|
|
|
23
32
|
*/
|
|
24
33
|
export default async function scrollIntoView(options = { block: 'start', inline: 'nearest' }) {
|
|
25
34
|
const browser = getBrowserObject(this);
|
|
26
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Appium does not support the "wheel" action
|
|
37
|
+
*/
|
|
27
38
|
if (browser.isMobile) {
|
|
28
|
-
return
|
|
29
|
-
[ELEMENT_KEY]: this.elementId,
|
|
30
|
-
ELEMENT: this.elementId, // jsonwp compatible
|
|
31
|
-
}, options);
|
|
39
|
+
return scrollIntoViewWeb.call(this, options);
|
|
32
40
|
}
|
|
33
41
|
let deltaX = 0;
|
|
34
42
|
let deltaY = 0;
|
|
@@ -54,7 +62,14 @@ export default async function scrollIntoView(options = { block: 'start', inline:
|
|
|
54
62
|
deltaX += Math.round((viewport.height - elemSize.height) / 2);
|
|
55
63
|
}
|
|
56
64
|
}
|
|
57
|
-
|
|
58
|
-
.
|
|
59
|
-
|
|
65
|
+
try {
|
|
66
|
+
return await browser.action('wheel')
|
|
67
|
+
.scroll({ origin: this, duration: 200, deltaY, deltaX })
|
|
68
|
+
.perform();
|
|
69
|
+
}
|
|
70
|
+
catch (err) {
|
|
71
|
+
log.warn(`Failed to execute "scrollIntoView" using WebDriver Actions API: ${err.message}!\n` +
|
|
72
|
+
'Re-attempting using `Element.scrollIntoView` via Web API.');
|
|
73
|
+
return scrollIntoViewWeb.call(this, options);
|
|
74
|
+
}
|
|
60
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"touchAction.d.ts","sourceRoot":"","sources":["../../../src/commands/element/touchAction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"touchAction.d.ts","sourceRoot":"","sources":["../../../src/commands/element/touchAction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,YAAY,iBAGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForClickable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"waitForClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForClickable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAA8B,gBAAgB,CAC1C,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAsG,EACzG,GAAE,cAAmB,wBAMzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForDisplayed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"waitForDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForDisplayed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAA8B,gBAAgB,CAC1C,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAsG,EACzG,GAAE,cAAmB,wBAMzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"waitForEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAA8B,cAAc,CACxC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAoG,EACvG,GAAE,cAAmB,wBAazB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForExist.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForExist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"waitForExist.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForExist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAqG,EACxG,GAAE,cAAmB,wBAMzB"}
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Options, Capabilities } from '@wdio/types';
|
|
2
2
|
import SevereServiceErrorImport from './utils/SevereServiceError.js';
|
|
3
|
-
import type { AttachOptions } from './types';
|
|
3
|
+
import type { AttachOptions } from './types.js';
|
|
4
4
|
export type RemoteOptions = Options.WebdriverIO & Omit<Options.Testrunner, 'capabilities' | 'rootDir'>;
|
|
5
5
|
export declare const Key: {
|
|
6
6
|
readonly Ctrl: "WDIO_CONTROL";
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAIxD,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;AAOpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAIxD,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;AAOpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG/C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,GAAG,SAAS,CAAC,CAAA;AACtG,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA;AAE9B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,WAA2B,aAAa,mBAAmB,QAAQ,KAAG,QAAQ,YAAY,OAAO,CA6CnH,CAAA;AAED,eAAO,MAAM,MAAM,kBAAkC,aAAa,KAAG,QAAQ,YAAY,OAAO,CAc/F,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,WACZ,aAAa,uBAAuB;;MAE7C,QAAQ,YAAY,kBAAkB,CAgExC,CAAA;AAED,eAAO,MAAM,kBAAkB,iCAA2B,CAAA;AAC1D,cAAc,YAAY,CAAA;AAC1B,cAAc,+BAA+B,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export const remote = async function (params, remoteModifier) {
|
|
|
31
31
|
* package (without undefined properties)
|
|
32
32
|
*/
|
|
33
33
|
Object.assign(options, Object.entries(config)
|
|
34
|
-
.reduce((a, [k, v]) => (v
|
|
34
|
+
.reduce((a, [k, v]) => (typeof v === 'undefined' ? a : { ...a, [k]: v }), {}));
|
|
35
35
|
if (typeof remoteModifier === 'function') {
|
|
36
36
|
client = remoteModifier(client, options);
|
|
37
37
|
}
|
|
@@ -65,7 +65,7 @@ export const attach = async function (attachOptions) {
|
|
|
65
65
|
requestedCapabilities: attachOptions.requestedCapabilities
|
|
66
66
|
};
|
|
67
67
|
const prototype = getPrototype('browser');
|
|
68
|
-
|
|
68
|
+
const automationProtocol = await getAutomationProtocol(params);
|
|
69
69
|
const ProtocolDriver = (await import(automationProtocol)).default;
|
|
70
70
|
return ProtocolDriver.attachToSession(params, undefined, prototype, wrapCommand);
|
|
71
71
|
};
|
package/build/multiremote.js
CHANGED
|
@@ -30,7 +30,7 @@ export default class MultiRemote {
|
|
|
30
30
|
configurable: true
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
propertiesObject
|
|
33
|
+
propertiesObject.__propertiesObject__ = {
|
|
34
34
|
value: propertiesObject
|
|
35
35
|
};
|
|
36
36
|
this.baseInstance = new MultiRemoteDriver(this.instances, propertiesObject);
|
|
@@ -72,7 +72,7 @@ export default function isElementClickable(elem) {
|
|
|
72
72
|
// getOverlappingElements of every element with shadowRoot
|
|
73
73
|
let shadowElementsFromPoint = [];
|
|
74
74
|
for (let i = 0; i < elemsWithShadowRoot.length; ++i) {
|
|
75
|
-
|
|
75
|
+
const shadowElement = elemsWithShadowRoot[i];
|
|
76
76
|
shadowElementsFromPoint = shadowElementsFromPoint.concat(getOverlappingElements(elem, shadowElement.shadowRoot));
|
|
77
77
|
}
|
|
78
78
|
// remove duplicates and parents
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isElementDisplayed.d.ts","sourceRoot":"","sources":["../../src/scripts/isElementDisplayed.ts"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,OAAO,EAAE,OAAO,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"isElementDisplayed.d.ts","sourceRoot":"","sources":["../../src/scripts/isElementDisplayed.ts"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAwOrE"}
|