promod 1.17.2 → 1.18.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/built/swd/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { $$, preBindBrowserInstance } from './swd_element';
|
|
|
3
3
|
declare const seleniumWD: {
|
|
4
4
|
getDriver: typeof getDriver;
|
|
5
5
|
browser: import("./swd_client").Browser;
|
|
6
|
-
$: (selector:
|
|
6
|
+
$: (selector: any, root?: any, ...rest: any[]) => import("../interface").PromodElementType;
|
|
7
7
|
$$: typeof $$;
|
|
8
8
|
preBindBrowserInstance: typeof preBindBrowserInstance;
|
|
9
9
|
};
|
|
@@ -194,7 +194,7 @@ declare class Browser {
|
|
|
194
194
|
switchToBrowser(browserData?: TSwitchBrowserTabPage): Promise<void>;
|
|
195
195
|
set setCreateNewDriver(driverCreator: any);
|
|
196
196
|
setClient(client: any): void;
|
|
197
|
-
get Key():
|
|
197
|
+
get Key(): any;
|
|
198
198
|
get baseUrl(): string;
|
|
199
199
|
set baseUrl(url: string);
|
|
200
200
|
returnToInitialTab(): Promise<void>;
|
|
@@ -261,7 +261,7 @@ declare class Browser {
|
|
|
261
261
|
* const cookies = await browser.getCookies();
|
|
262
262
|
* @return {Promise<Array<TCookie>>} cookies list
|
|
263
263
|
*/
|
|
264
|
-
getCookies(): Promise<
|
|
264
|
+
getCookies(): Promise<any>;
|
|
265
265
|
/**
|
|
266
266
|
* @example
|
|
267
267
|
* const { seleniumWD } = require('promod');
|
|
@@ -271,7 +271,7 @@ declare class Browser {
|
|
|
271
271
|
* @param {string} name cookie name
|
|
272
272
|
* @return {Promise<{ name: string; value: string }>}
|
|
273
273
|
*/
|
|
274
|
-
getCookieByName(name: string): Promise<
|
|
274
|
+
getCookieByName(name: string): Promise<any>;
|
|
275
275
|
/**
|
|
276
276
|
* @example
|
|
277
277
|
* const { seleniumWD } = require('promod');
|
|
@@ -300,7 +300,7 @@ declare class Browser {
|
|
|
300
300
|
*
|
|
301
301
|
* @return {Promise<string>} tab (page) title
|
|
302
302
|
*/
|
|
303
|
-
getTitle(): Promise<
|
|
303
|
+
getTitle(): Promise<any>;
|
|
304
304
|
/**
|
|
305
305
|
* @example
|
|
306
306
|
* const { seleniumWD } = require('promod');
|
|
@@ -310,7 +310,7 @@ declare class Browser {
|
|
|
310
310
|
*
|
|
311
311
|
* @return {Promise<string>}
|
|
312
312
|
*/
|
|
313
|
-
getCurrentUrl(): Promise<
|
|
313
|
+
getCurrentUrl(): Promise<any>;
|
|
314
314
|
/**
|
|
315
315
|
* @example
|
|
316
316
|
* const { seleniumWD } = require('promod');
|
|
@@ -343,7 +343,7 @@ declare class Browser {
|
|
|
343
343
|
*
|
|
344
344
|
* @returns {Promise<any[]>}
|
|
345
345
|
*/
|
|
346
|
-
getTabs(): Promise<
|
|
346
|
+
getTabs(): Promise<any>;
|
|
347
347
|
/**
|
|
348
348
|
* @example
|
|
349
349
|
* const { seleniumWD } = require('promod');
|
|
@@ -353,7 +353,7 @@ declare class Browser {
|
|
|
353
353
|
*
|
|
354
354
|
* @returns {Promise<number>}
|
|
355
355
|
*/
|
|
356
|
-
getTabsCount(): Promise<
|
|
356
|
+
getTabsCount(): Promise<any>;
|
|
357
357
|
/**
|
|
358
358
|
* @example
|
|
359
359
|
* const { seleniumWD } = require('promod');
|
|
@@ -364,7 +364,7 @@ declare class Browser {
|
|
|
364
364
|
* @param {string} url url that needs to be open
|
|
365
365
|
* @return {Promise<void>}
|
|
366
366
|
*/
|
|
367
|
-
get(url: string): Promise<
|
|
367
|
+
get(url: string): Promise<any>;
|
|
368
368
|
/**
|
|
369
369
|
* @example
|
|
370
370
|
* const { seleniumWD } = require('promod');
|
|
@@ -376,7 +376,7 @@ declare class Browser {
|
|
|
376
376
|
* @param {number} height window height
|
|
377
377
|
* @return {Promise<void>}
|
|
378
378
|
*/
|
|
379
|
-
setWindowSize(width: number, height: number): Promise<
|
|
379
|
+
setWindowSize(width: number, height: number): Promise<any>;
|
|
380
380
|
/**
|
|
381
381
|
* @example
|
|
382
382
|
* const { seleniumWD } = require('promod');
|
|
@@ -409,7 +409,7 @@ declare class Browser {
|
|
|
409
409
|
*
|
|
410
410
|
* @return {Promise<void>}
|
|
411
411
|
*/
|
|
412
|
-
back(): Promise<
|
|
412
|
+
back(): Promise<any>;
|
|
413
413
|
/**
|
|
414
414
|
* @example
|
|
415
415
|
* const { seleniumWD } = require('promod');
|
|
@@ -419,7 +419,7 @@ declare class Browser {
|
|
|
419
419
|
*
|
|
420
420
|
* @return {Promise<void>}
|
|
421
421
|
*/
|
|
422
|
-
forward(): Promise<
|
|
422
|
+
forward(): Promise<any>;
|
|
423
423
|
/**
|
|
424
424
|
* @example
|
|
425
425
|
* const { seleniumWD } = require('promod');
|
|
@@ -429,7 +429,7 @@ declare class Browser {
|
|
|
429
429
|
*
|
|
430
430
|
* @return {Promise<void>}
|
|
431
431
|
*/
|
|
432
|
-
refresh(): Promise<
|
|
432
|
+
refresh(): Promise<any>;
|
|
433
433
|
/**
|
|
434
434
|
* @example
|
|
435
435
|
* const { seleniumWD } = require('promod');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { By
|
|
1
|
+
import { By } from 'selenium-webdriver';
|
|
2
2
|
import type { PromodElementType, PromodElementsType } from '../interface';
|
|
3
3
|
import type { TCustomSelector } from '../mappers';
|
|
4
4
|
declare class PromodSeleniumElements {
|
|
@@ -225,7 +225,7 @@ declare class PromodSeleniumElement {
|
|
|
225
225
|
*
|
|
226
226
|
* @returns {Promise<boolean>} button is present
|
|
227
227
|
*/
|
|
228
|
-
isDisplayed(): Promise<
|
|
228
|
+
isDisplayed(): Promise<any>;
|
|
229
229
|
/**
|
|
230
230
|
* @example
|
|
231
231
|
* const txt = '123';
|
|
@@ -272,11 +272,11 @@ declare class PromodSeleniumElement {
|
|
|
272
272
|
};
|
|
273
273
|
private isInteractionIntercepted;
|
|
274
274
|
}
|
|
275
|
-
declare const $: (selector:
|
|
275
|
+
declare const $: (selector: any, root?: PromodElementType | any, ...rest: any[]) => PromodElementType;
|
|
276
276
|
declare function $$(selector: string | TCustomSelector | By | ((...args: any[]) => any) | Promise<any>, root?: PromodElementType | any, ...rest: any[]): PromodElementsType;
|
|
277
277
|
declare function preBindBrowserInstance(browserThaNeedsToBeBinded: any): {
|
|
278
278
|
browser: any;
|
|
279
|
-
$$: (selector:
|
|
280
|
-
$: (selector:
|
|
279
|
+
$$: (selector: any, root?: PromodElementType | any, ...rest: any[]) => PromodElementsType;
|
|
280
|
+
$: (selector: any, root?: PromodElementType | any, ...rest: any[]) => PromodElementType;
|
|
281
281
|
};
|
|
282
282
|
export { $, $$, PromodSeleniumElement, PromodSeleniumElements, By, preBindBrowserInstance };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promod",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "Library for automation testing",
|
|
5
5
|
"main": "./built/index.js",
|
|
6
6
|
"bin": "./bin/promod_cli",
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/Simple-Automation-Testing/promod#readme",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/mocha": "^8.2.2",
|
|
31
|
-
"@types/node": "^20.9.3",
|
|
32
|
-
"@types/selenium-webdriver": "^4.1.15",
|
|
33
30
|
"@typescript-eslint/eslint-plugin": "^3.8.0",
|
|
34
31
|
"@typescript-eslint/parser": "^3.8.0",
|
|
35
32
|
"assertior": "0.0.26",
|
|
@@ -44,10 +41,10 @@
|
|
|
44
41
|
},
|
|
45
42
|
"dependencies": {
|
|
46
43
|
"get-port": "5.1.1",
|
|
47
|
-
"playwright": "^1.
|
|
44
|
+
"playwright": "^1.45.2",
|
|
48
45
|
"sat-utils": "1.12.2",
|
|
49
|
-
"selenium-standalone": "^
|
|
50
|
-
"selenium-webdriver": "^4.
|
|
46
|
+
"selenium-standalone": "^10.0.0",
|
|
47
|
+
"selenium-webdriver": "^4.22.0",
|
|
51
48
|
"yargs": "^17.6.0"
|
|
52
49
|
},
|
|
53
50
|
"keywords": [
|