@wdio/globals 8.34.1 → 9.0.0-alpha.9
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/cjs/package.json +3 -1
- package/package.json +4 -4
- package/types.d.ts +23 -0
package/cjs/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/globals",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-alpha.9+9220932b7",
|
|
4
4
|
"description": "A helper utility for importing global variables directly",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-globals",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"types": "./build/index.d.ts",
|
|
24
24
|
"typeScriptVersion": "3.8.3",
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": "
|
|
26
|
+
"node": ">=18"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
45
|
"expect-webdriverio": "^4.11.2",
|
|
46
|
-
"webdriverio": "
|
|
46
|
+
"webdriverio": "9.0.0-alpha.9+9220932b7"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9220932b7048d9b5b6c8397dda54842625be7ef2"
|
|
49
49
|
}
|
package/types.d.ts
CHANGED
|
@@ -14,3 +14,26 @@ declare function $$(...args: Parameters<WebdriverIO.Browser['$$']>): ReturnType<
|
|
|
14
14
|
declare var browser: WebdriverIO.Browser
|
|
15
15
|
declare var driver: WebdriverIO.Browser
|
|
16
16
|
declare var multiremotebrowser: WebdriverIO.MultiRemoteBrowser
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* custom environment primitives for WebdriverIO when running in a browser
|
|
20
|
+
*/
|
|
21
|
+
declare var wdio: {
|
|
22
|
+
/**
|
|
23
|
+
* This command is available when running WebdriverIO tests using `@wdio/browser-runner`.
|
|
24
|
+
* It allows you to execute a command in Node.js land if desired.
|
|
25
|
+
* @param command The command to execute
|
|
26
|
+
* @param args The arguments to pass to the command
|
|
27
|
+
* @returns The result of the command
|
|
28
|
+
*/
|
|
29
|
+
execute: <CommandName>(command: CommandName, ...args: any[]) => ReturnType<WebdriverIO.Browser[CommandName]>
|
|
30
|
+
/**
|
|
31
|
+
* This command is available when running WebdriverIO tests using `@wdio/browser-runner`.
|
|
32
|
+
* It allows you to execute a command in Node.js land if desired.
|
|
33
|
+
* @param command The command to execute
|
|
34
|
+
* @param scope The element id when the command needs to be executed from an element scope
|
|
35
|
+
* @param args The arguments to pass to the command
|
|
36
|
+
* @returns The result of the command
|
|
37
|
+
*/
|
|
38
|
+
executeWithScope: <CommandName>(commandName: CommandName, scope: string, ...args: any[]) => ReturnType<WebdriverIO.Browser[CommandName]>
|
|
39
|
+
}
|