webdriverio 8.1.2 → 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
|
@@ -25,7 +25,7 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
25
25
|
* @param {Any} strategyArguments
|
|
26
26
|
* @return {ElementArray}
|
|
27
27
|
*/
|
|
28
|
-
async function custom$$(strategyName, ...strategyArguments) {
|
|
28
|
+
export async function custom$$(strategyName, ...strategyArguments) {
|
|
29
29
|
const browserObject = getBrowserObject(this);
|
|
30
30
|
const strategy = browserObject.strategies.get(strategyName);
|
|
31
31
|
if (!strategy) {
|
|
@@ -53,4 +53,3 @@ async function custom$$(strategyName, ...strategyArguments) {
|
|
|
53
53
|
const elements = res.length ? await getElements.call(this, strategyRef, res) : [];
|
|
54
54
|
return enhanceElementsArray(elements, this, strategyName, 'custom$$', strategyArguments);
|
|
55
55
|
}
|
|
56
|
-
export default custom$$;
|
|
@@ -22,6 +22,5 @@
|
|
|
22
22
|
* @param {Any} strategyArguments
|
|
23
23
|
* @return {Element}
|
|
24
24
|
*/
|
|
25
|
-
declare function custom$(this: WebdriverIO.Element, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
|
|
26
|
-
export default custom$;
|
|
25
|
+
export declare function custom$(this: WebdriverIO.Element, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
|
|
27
26
|
//# sourceMappingURL=custom$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/custom$.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,
|
|
1
|
+
{"version":3,"file":"custom$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/custom$.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,YAAY,EAAE,MAAM,EACpB,GAAG,iBAAiB,EAAE,GAAG,EAAE,gCAmC9B"}
|
|
@@ -25,7 +25,7 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
25
25
|
* @param {Any} strategyArguments
|
|
26
26
|
* @return {Element}
|
|
27
27
|
*/
|
|
28
|
-
async function custom$(strategyName, ...strategyArguments) {
|
|
28
|
+
export async function custom$(strategyName, ...strategyArguments) {
|
|
29
29
|
const browserObject = getBrowserObject(this);
|
|
30
30
|
const strategy = browserObject.strategies.get(strategyName);
|
|
31
31
|
if (!strategy) {
|
|
@@ -53,4 +53,3 @@ async function custom$(strategyName, ...strategyArguments) {
|
|
|
53
53
|
}
|
|
54
54
|
throw Error('Your locator strategy script must return an element');
|
|
55
55
|
}
|
|
56
|
-
export default custom$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doubleClick.d.ts","sourceRoot":"","sources":["../../../src/commands/element/doubleClick.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,
|
|
1
|
+
{"version":3,"file":"doubleClick.d.ts","sourceRoot":"","sources":["../../../src/commands/element/doubleClick.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,iBAqB3D"}
|
|
@@ -36,6 +36,6 @@ type ElementCoordinates = {
|
|
|
36
36
|
* @param {DragAndDropOptions=} options dragAndDrop command options
|
|
37
37
|
* @param {Number=} options.duration how long the drag should take place
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export declare function dragAndDrop(this: WebdriverIO.Element, target: WebdriverIO.Element | ElementCoordinates, { duration }?: DragAndDropOptions): Promise<void>;
|
|
40
40
|
export {};
|
|
41
41
|
//# sourceMappingURL=dragAndDrop.d.ts.map
|
|
@@ -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,
|
|
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,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,EAAE,WAAW,CAAC,OAAO,GAAG,kBAAkB,EAChD,EAAE,QAAa,EAAE,GAAE,kBAAuB,iBAmE7C"}
|
|
@@ -33,7 +33,7 @@ const sleep = (time = 0) => new Promise((resolve) => setTimeout(resolve, time));
|
|
|
33
33
|
* @param {DragAndDropOptions=} options dragAndDrop command options
|
|
34
34
|
* @param {Number=} options.duration how long the drag should take place
|
|
35
35
|
*/
|
|
36
|
-
export
|
|
36
|
+
export async function dragAndDrop(target, { duration = 10 } = {}) {
|
|
37
37
|
const moveToCoordinates = target;
|
|
38
38
|
const moveToElement = target;
|
|
39
39
|
/**
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
* @type property
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
export
|
|
27
|
+
export declare function getAttribute(this: WebdriverIO.Element, attributeName: string): Promise<string>;
|
|
28
28
|
//# sourceMappingURL=getAttribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAttribute.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getAttribute.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,
|
|
1
|
+
{"version":3,"file":"getAttribute.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getAttribute.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,EAAE,MAAM,mBAGxB"}
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
* @return {CSSProperty} The specified css of the element
|
|
68
68
|
*
|
|
69
69
|
*/
|
|
70
|
-
export
|
|
70
|
+
export declare function getCSSProperty(this: WebdriverIO.Element, cssProperty: string): Promise<import("../../types.js").ParsedCSSValue>;
|
|
71
71
|
//# sourceMappingURL=getCSSProperty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCSSProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getCSSProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,
|
|
1
|
+
{"version":3,"file":"getCSSProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getCSSProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,wBAAsB,cAAc,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,WAAW,EAAE,MAAM,oDAsCtB"}
|
|
@@ -69,7 +69,7 @@ import { parseCSS } from '../../utils/index.js';
|
|
|
69
69
|
* @return {CSSProperty} The specified css of the element
|
|
70
70
|
*
|
|
71
71
|
*/
|
|
72
|
-
export
|
|
72
|
+
export async function getCSSProperty(cssProperty) {
|
|
73
73
|
/**
|
|
74
74
|
* Getting the css value of a shorthand property results in different results
|
|
75
75
|
* given that the behavior of `getComputedStyle` is not defined in this case.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getComputedLabel.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getComputedLabel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,
|
|
1
|
+
{"version":3,"file":"getComputedLabel.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getComputedLabel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAE1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getComputedRole.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getComputedRole.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,
|
|
1
|
+
{"version":3,"file":"getComputedRole.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getComputedRole.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAEzD"}
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
* @type property
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export declare function getHTML(this: WebdriverIO.Element, includeSelectorTag?: boolean): Promise<string>;
|
|
32
32
|
//# sourceMappingURL=getHTML.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHTML.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getHTML.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,
|
|
1
|
+
{"version":3,"file":"getHTML.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getHTML.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,OAAO,CACnB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,kBAAkB,UAAO,mBAO5B"}
|
|
@@ -31,7 +31,7 @@ import getHTMLScript from '../../scripts/getHTML.js';
|
|
|
31
31
|
* @type property
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export function getHTML(includeSelectorTag = true) {
|
|
35
35
|
const browser = getBrowserObject(this);
|
|
36
36
|
return browser.execute(getHTMLScript, {
|
|
37
37
|
[ELEMENT_KEY]: this.elementId,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RectReturn } from '@wdio/protocols';
|
|
2
2
|
export type Location = Pick<RectReturn, 'x' | 'y'>;
|
|
3
|
-
declare function getLocation(this: WebdriverIO.Element): Promise<Location>;
|
|
4
|
-
declare function getLocation(this: WebdriverIO.Element, prop: keyof Location): Promise<number>;
|
|
5
|
-
export default getLocation;
|
|
3
|
+
export declare function getLocation(this: WebdriverIO.Element): Promise<Location>;
|
|
4
|
+
export declare function getLocation(this: WebdriverIO.Element, prop: keyof Location): Promise<number>;
|
|
6
5
|
//# sourceMappingURL=getLocation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocation.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAGjD,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC;AAEnD,
|
|
1
|
+
{"version":3,"file":"getLocation.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAGjD,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC;AAEnD,wBAAgB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;AAC1E,wBAAgB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -26,7 +26,7 @@ import { getElementRect } from '../../utils/index.js';
|
|
|
26
26
|
* @uses protocol/elementIdLocation
|
|
27
27
|
* @type property
|
|
28
28
|
*/
|
|
29
|
-
async function getLocation(prop) {
|
|
29
|
+
export async function getLocation(prop) {
|
|
30
30
|
let location = {};
|
|
31
31
|
if (this.isW3C) {
|
|
32
32
|
location = await getElementRect(this);
|
|
@@ -41,4 +41,3 @@ async function getLocation(prop) {
|
|
|
41
41
|
}
|
|
42
42
|
return location;
|
|
43
43
|
}
|
|
44
|
-
export default getLocation;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @param {String} property name of the element property
|
|
15
15
|
* @return {Object|String|Boolean|Number|null} the value of the property of the selected element
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare function getProperty(this: WebdriverIO.Element, property: string): Promise<string | number | boolean | HTMLElement | Element | ChildNode | ParentNode | Document | (() => ElementInternals) | (() => void) | {
|
|
18
18
|
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
19
19
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
20
20
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,
|
|
1
|
+
{"version":3,"file":"getProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kpKAYnB"}
|
|
@@ -16,7 +16,7 @@ import getPropertyScript from '../../scripts/getProperty.js';
|
|
|
16
16
|
* @param {String} property name of the element property
|
|
17
17
|
* @return {Object|String|Boolean|Number|null} the value of the property of the selected element
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export function getProperty(property) {
|
|
20
20
|
if (this.isW3C) {
|
|
21
21
|
return this.getElementProperty(this.elementId, property);
|
|
22
22
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RectReturn } from '@wdio/protocols';
|
|
2
2
|
export type Size = Pick<RectReturn, 'width' | 'height'>;
|
|
3
|
-
declare function getSize(this: WebdriverIO.Element): Promise<Size>;
|
|
4
|
-
declare function getSize(this: WebdriverIO.Element, prop: keyof RectReturn): Promise<number>;
|
|
5
|
-
export default getSize;
|
|
3
|
+
export declare function getSize(this: WebdriverIO.Element): Promise<Size>;
|
|
4
|
+
export declare function getSize(this: WebdriverIO.Element, prop: keyof RectReturn): Promise<number>;
|
|
6
5
|
//# sourceMappingURL=getSize.d.ts.map
|
|
@@ -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,
|
|
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,wBAAgB,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACnE,wBAAgB,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -26,7 +26,7 @@ import { getElementRect } from '../../utils/index.js';
|
|
|
26
26
|
* @type property
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
|
-
async function getSize(prop) {
|
|
29
|
+
export async function getSize(prop) {
|
|
30
30
|
const rect = this.isW3C
|
|
31
31
|
? await getElementRect(this)
|
|
32
32
|
: await this.getElementSize(this.elementId);
|
|
@@ -38,4 +38,3 @@ async function getSize(prop) {
|
|
|
38
38
|
height: rect.height
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export default getSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTagName.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getTagName.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,
|
|
1
|
+
{"version":3,"file":"getTagName.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getTagName.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAEpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getText.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getText.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,
|
|
1
|
+
{"version":3,"file":"getText.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getText.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,OAAO,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAEjD"}
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
* @alias element.getValue
|
|
19
19
|
* @return {String} requested element(s) value
|
|
20
20
|
* @uses protocol/elements, protocol/elementIdProperty
|
|
21
|
-
* @type property
|
|
22
21
|
*
|
|
23
22
|
*/
|
|
24
|
-
export
|
|
23
|
+
export declare function getValue(this: WebdriverIO.Element): Promise<string>;
|
|
25
24
|
//# sourceMappingURL=getValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getValue.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getValue.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"getValue.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getValue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,mBAOlD"}
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
* @alias element.getValue
|
|
19
19
|
* @return {String} requested element(s) value
|
|
20
20
|
* @uses protocol/elements, protocol/elementIdProperty
|
|
21
|
-
* @type property
|
|
22
21
|
*
|
|
23
22
|
*/
|
|
24
|
-
export
|
|
23
|
+
export function getValue() {
|
|
25
24
|
// `!this.isMobile` added to workaround https://github.com/appium/appium/issues/12218
|
|
26
25
|
if (this.isW3C && !this.isMobile) {
|
|
27
26
|
return this.getElementProperty(this.elementId, 'value');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isClickable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,
|
|
1
|
+
{"version":3,"file":"isClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isClickable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAc3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,
|
|
1
|
+
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAgC3D"}
|
|
@@ -50,7 +50,7 @@ const noW3CEndpoint = ['microsoftedge', 'msedge', 'safari', 'chrome', 'safari te
|
|
|
50
50
|
* @type state
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export async function isDisplayed() {
|
|
54
54
|
const browser = getBrowserObject(this);
|
|
55
55
|
if (!await hasElementId(this)) {
|
|
56
56
|
return false;
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
* @type state
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
|
-
export
|
|
37
|
+
export declare function isDisplayedInViewport(this: WebdriverIO.Element): Promise<boolean>;
|
|
38
38
|
//# sourceMappingURL=isDisplayedInViewport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDisplayedInViewport.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayedInViewport.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,
|
|
1
|
+
{"version":3,"file":"isDisplayedInViewport.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayedInViewport.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,qBAAqB,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAUrE"}
|
|
@@ -37,7 +37,7 @@ import isElementInViewportScript from '../../scripts/isElementInViewport.js';
|
|
|
37
37
|
* @type state
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
|
-
export
|
|
40
|
+
export async function isDisplayedInViewport() {
|
|
41
41
|
if (!await this.isDisplayed()) {
|
|
42
42
|
return false;
|
|
43
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEnabled.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,
|
|
1
|
+
{"version":3,"file":"isEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEnabled.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,SAAS,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAEnD"}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
* @return {Boolean} true if elements are equal
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export declare function isEqual(this: WebdriverIO.Element, el: WebdriverIO.Element): Promise<boolean>;
|
|
24
24
|
//# sourceMappingURL=isEqual.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEqual.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,
|
|
1
|
+
{"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEqual.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EAAE,EAAE,WAAW,CAAC,OAAO,oBA4B1B"}
|
|
@@ -26,7 +26,7 @@ const getWebElement = (el) => ({
|
|
|
26
26
|
* @return {Boolean} true if elements are equal
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export async function isEqual(el) {
|
|
30
30
|
const browser = getBrowserObject(this);
|
|
31
31
|
// mobile native
|
|
32
32
|
if (browser.isMobile) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isExisting.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isExisting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,
|
|
1
|
+
{"version":3,"file":"isExisting.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isExisting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAsB,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAkB1D"}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* @type state
|
|
46
46
|
*
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export async function isExisting() {
|
|
49
49
|
/**
|
|
50
50
|
* if an element was composed via `const elem = $({ 'element-6066-11e4-a52e-4f735466cecf': <elementId> })`
|
|
51
51
|
* we don't have any selector information. Therefore we can only check existance
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isFocused.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isFocused.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,
|
|
1
|
+
{"version":3,"file":"isFocused.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isFocused.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,SAAS,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAMzD"}
|
|
@@ -27,7 +27,7 @@ import isFocusedScript from '../../scripts/isFocused.js';
|
|
|
27
27
|
* @type state
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export async function isFocused() {
|
|
31
31
|
const browser = await getBrowserObject(this);
|
|
32
32
|
return browser.execute(isFocusedScript, {
|
|
33
33
|
[ELEMENT_KEY]: this.elementId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSelected.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isSelected.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,
|
|
1
|
+
{"version":3,"file":"isSelected.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isSelected.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAEpD"}
|
|
@@ -16,6 +16,6 @@ type MoveToOptions = {
|
|
|
16
16
|
* @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto
|
|
17
17
|
* @type protocol
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export declare function moveTo(this: WebdriverIO.Element, { xOffset, yOffset }?: MoveToOptions): Promise<void>;
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=moveTo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveTo.d.ts","sourceRoot":"","sources":["../../../src/commands/element/moveTo.ts"],"names":[],"mappings":"AAEA,KAAK,aAAa,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,
|
|
1
|
+
{"version":3,"file":"moveTo.d.ts","sourceRoot":"","sources":["../../../src/commands/element/moveTo.ts"],"names":[],"mappings":"AAEA,KAAK,aAAa,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,MAAM,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EAAE,OAAO,EAAE,OAAO,EAAE,GAAE,aAAkB,iBAqB3C"}
|
|
@@ -13,7 +13,7 @@ import { getElementRect, getScrollPosition, getBrowserObject } from '../../utils
|
|
|
13
13
|
* @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto
|
|
14
14
|
* @type protocol
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export async function moveTo({ xOffset, yOffset } = {}) {
|
|
17
17
|
if (!this.isW3C) {
|
|
18
18
|
return this.moveToElement(this.elementId, xOffset, yOffset);
|
|
19
19
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ChainablePromiseElement } from '../../types.js';
|
|
2
1
|
/**
|
|
3
2
|
*
|
|
4
3
|
* Returns the next sibling element of the selected DOM-element.
|
|
@@ -22,5 +21,5 @@ import type { ChainablePromiseElement } from '../../types.js';
|
|
|
22
21
|
* @return {Element}
|
|
23
22
|
* @type utility
|
|
24
23
|
*/
|
|
25
|
-
export
|
|
24
|
+
export declare function nextElement(this: WebdriverIO.Element): import("../../types.js").ChainablePromiseElement<WebdriverIO.Element>;
|
|
26
25
|
//# sourceMappingURL=nextElement.d.ts.map
|