@applitools/spec-driver-puppeteer 1.1.73 → 1.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/CHANGELOG.md +38 -0
- package/dist/spec-driver.js +3 -4
- package/package.json +4 -4
- package/types/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-puppeteer@1.1.74...js/spec-driver-puppeteer@1.2.0) (2023-09-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/utils bumped to 1.6.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
|
|
17
|
+
* @applitools/logger bumped to 2.0.10
|
|
18
|
+
|
|
19
|
+
* @applitools/driver bumped to 1.14.0
|
|
20
|
+
#### Features
|
|
21
|
+
|
|
22
|
+
* update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [1.1.74](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-puppeteer@1.1.73...js/spec-driver-puppeteer@1.1.74) (2023-08-30)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* @applitools/utils bumped to 1.5.2
|
|
33
|
+
#### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* fixed some types ([498b1d7](https://github.com/applitools/eyes.sdk.javascript1/commit/498b1d7c547df04773b64b66ee39cccb402c093e))
|
|
36
|
+
* @applitools/logger bumped to 2.0.9
|
|
37
|
+
|
|
38
|
+
* @applitools/driver bumped to 1.13.6
|
|
39
|
+
|
|
40
|
+
|
|
3
41
|
## [1.1.73](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-puppeteer@1.1.72...js/spec-driver-puppeteer@1.1.73) (2023-08-18)
|
|
4
42
|
|
|
5
43
|
|
package/dist/spec-driver.js
CHANGED
|
@@ -162,10 +162,9 @@ async function findElements(frame, selector, parent) {
|
|
|
162
162
|
return (isXpathSelector(selector) ? root.$x(selector) : root.$$(selector));
|
|
163
163
|
}
|
|
164
164
|
exports.findElements = findElements;
|
|
165
|
-
async function setElementText(
|
|
166
|
-
|
|
167
|
-
await
|
|
168
|
-
await (resolvedElement === null || resolvedElement === void 0 ? void 0 : resolvedElement.type(text));
|
|
165
|
+
async function setElementText(_frame, element, text) {
|
|
166
|
+
await element.evaluate(element => (element.value = ''));
|
|
167
|
+
await element.type(text);
|
|
169
168
|
}
|
|
170
169
|
exports.setElementText = setElementText;
|
|
171
170
|
async function hover(_frame, element) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/spec-driver-puppeteer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"puppeteer",
|
|
6
6
|
"chrome devtools protocol",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"up:framework": "yarn add --dev --caret puppeteer${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@applitools/driver": "1.
|
|
44
|
-
"@applitools/utils": "1.
|
|
43
|
+
"@applitools/driver": "1.14.0",
|
|
44
|
+
"@applitools/utils": "1.6.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@applitools/api-extractor": "^1.2.
|
|
47
|
+
"@applitools/api-extractor": "^1.2.22",
|
|
48
48
|
"@applitools/test-utils": "^1.5.17",
|
|
49
49
|
"@types/node": "^12.20.55",
|
|
50
50
|
"puppeteer": "^19.11.1"
|
package/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export function extractContext(page: Driver): Context;
|
|
|
11
11
|
export function executeScript(frame: Context, script: string | ((arg: any) => any), arg: any): Promise<any>;
|
|
12
12
|
export function findElement(frame: Context, selector: Selector, parent?: undefined | Element<globalThis.Element>): Promise<null | Element<globalThis.Element>>;
|
|
13
13
|
export function findElements(frame: Context, selector: Selector, parent?: undefined | Element<globalThis.Element>): Promise<Array<Element<globalThis.Element>>>;
|
|
14
|
-
export function setElementText(
|
|
14
|
+
export function setElementText(_frame: Context, element: Element<globalThis.Element>, text: string): Promise<void>;
|
|
15
15
|
export function hover(_frame: Context, element: Element<globalThis.Element>): Promise<void>;
|
|
16
16
|
export function click(_frame: Context, element: Element<globalThis.Element>): Promise<void>;
|
|
17
17
|
export function mainContext(frame: Context): Promise<Context>;
|