@applitools/spec-driver-webdriver 1.0.6 → 1.0.8
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/package.json +9 -26
- package/types/index.d.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/spec-driver-webdriver",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"webdriver",
|
|
6
6
|
"chrome devtools protocol",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"types"
|
|
47
47
|
],
|
|
48
48
|
"scripts": {
|
|
49
|
-
"lint": "eslint '**/*.ts'",
|
|
50
|
-
"build": "ttsc --project ./tsconfig.build.json",
|
|
49
|
+
"lint": "node ../../node_modules/.bin/eslint '**/*.ts'",
|
|
50
|
+
"build": "node ../../node_modules/.bin/ttsc --project ./tsconfig.build.json",
|
|
51
51
|
"test": "mocha ./test/**/*.spec.ts --exit --no-timeouts -r ts-node/register -r @applitools/test-utils/mocha-hooks/docker",
|
|
52
52
|
"test:sanity": "yarn test",
|
|
53
53
|
"setup": "yarn docker:setup",
|
|
54
|
-
"docker:setup": "node
|
|
54
|
+
"docker:setup": "node ../../scripts/generate-docker-compose-config.js && docker-compose up -d",
|
|
55
55
|
"docker:teardown": "docker-compose down",
|
|
56
56
|
"deps": "bongo deps",
|
|
57
57
|
"gh:test": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='spec-webdriver' -f links='types utils test-utils'",
|
|
@@ -60,37 +60,20 @@
|
|
|
60
60
|
"version": "bongo version",
|
|
61
61
|
"postversion": "bongo postversion --skip-release-notification"
|
|
62
62
|
},
|
|
63
|
-
"husky": {
|
|
64
|
-
"hooks": {
|
|
65
|
-
"pre-push": "yarn bongo lint"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
63
|
"dependencies": {
|
|
69
|
-
"@applitools/driver": "1.11.
|
|
70
|
-
"@applitools/utils": "1.3.
|
|
64
|
+
"@applitools/driver": "1.11.30",
|
|
65
|
+
"@applitools/utils": "1.3.30",
|
|
71
66
|
"proxy-agent": "5.0.0"
|
|
72
67
|
},
|
|
73
68
|
"devDependencies": {
|
|
74
69
|
"@applitools/api-extractor": "1.2.11",
|
|
75
|
-
"@applitools/bongo": "^2.2.
|
|
76
|
-
"@applitools/
|
|
77
|
-
"@applitools/test-utils": "1.5.
|
|
70
|
+
"@applitools/bongo": "^2.2.5",
|
|
71
|
+
"@applitools/test-server": "^1.1.25",
|
|
72
|
+
"@applitools/test-utils": "1.5.12",
|
|
78
73
|
"@types/mocha": "^9.1.1",
|
|
79
74
|
"@types/node": "12",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
81
|
-
"@typescript-eslint/parser": "^5.27.0",
|
|
82
|
-
"eslint": "^8.16.0",
|
|
83
|
-
"eslint-config-prettier": "^8.5.0",
|
|
84
|
-
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
85
|
-
"eslint-plugin-node": "^11.1.0",
|
|
86
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
87
|
-
"husky": "^4.3.7",
|
|
88
75
|
"mocha": "^9.2.2",
|
|
89
76
|
"nock": "^13.2.9",
|
|
90
|
-
"prettier": "^2.6.2",
|
|
91
|
-
"ts-node": "^10.8.0",
|
|
92
|
-
"ttypescript": "^1.5.12",
|
|
93
|
-
"typescript": "^4.7.2",
|
|
94
77
|
"webdriver": "^7.27.0"
|
|
95
78
|
},
|
|
96
79
|
"peerDependencies": {
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('@applitools/driver').SpecDriver<
|
|
1
|
+
declare const _default: import('@applitools/driver').SpecDriver<SpecType>;
|
|
2
2
|
export default _default;
|
|
3
3
|
export function isDriver(driver: any): driver is Driver;
|
|
4
4
|
export function isElement(element: any): element is Element;
|
|
@@ -45,8 +45,8 @@ export function getSystemBars(browser: Driver): Promise<{ statusBar: {
|
|
|
45
45
|
height: number;
|
|
46
46
|
width: number;
|
|
47
47
|
}; }>;
|
|
48
|
-
export function getOrientation(browser: Driver): Promise<"
|
|
49
|
-
export function setOrientation(browser: Driver, orientation: "
|
|
48
|
+
export function getOrientation(browser: Driver): Promise<"landscape" | "portrait">;
|
|
49
|
+
export function setOrientation(browser: Driver, orientation: "landscape" | "portrait"): Promise<void>;
|
|
50
50
|
export function getElementRegion(driver: Driver, element: Element): Promise<{
|
|
51
51
|
x: number;
|
|
52
52
|
y: number;
|
|
@@ -70,5 +70,6 @@ export type Selector = {
|
|
|
70
70
|
value: string;
|
|
71
71
|
__applitoolsBrand?: undefined;
|
|
72
72
|
};
|
|
73
|
+
export type SpecType = { driver: Driver; context: Driver; element: Element; selector: Selector; };
|
|
73
74
|
export type StaticDriver = { sessionId: string; serverUrl: string; capabilities: Record<string, any>; proxy?: undefined | { url: string; }; };
|
|
74
75
|
export type StaticElement = { elementId: string; };
|