@testring/plugin-selenium-driver 0.6.14-alpha.4 → 0.6.14-alpha.6
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/dist/plugin/index.js +2 -2
- package/package.json +7 -7
- package/src/plugin/index.ts +3 -3
package/dist/plugin/index.js
CHANGED
|
@@ -413,7 +413,7 @@ class SeleniumPlugin {
|
|
|
413
413
|
yield this.createClient(applicant);
|
|
414
414
|
const client = this.getBrowserClient(applicant);
|
|
415
415
|
const element = yield client.$(selector);
|
|
416
|
-
return element.click();
|
|
416
|
+
return options && Object.keys(options).length > 0 ? element.click(options) : element.click();
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
getSize(applicant, selector) {
|
|
@@ -540,7 +540,7 @@ class SeleniumPlugin {
|
|
|
540
540
|
return __awaiter(this, void 0, void 0, function* () {
|
|
541
541
|
yield this.createClient(applicant);
|
|
542
542
|
const client = this.getBrowserClient(applicant);
|
|
543
|
-
return client.switchFrame(frameID
|
|
543
|
+
return client.switchFrame(frameID);
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
546
|
frameParent(applicant) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testring/plugin-selenium-driver",
|
|
3
|
-
"version": "0.6.14-alpha.
|
|
3
|
+
"version": "0.6.14-alpha.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "./src/index.ts",
|
|
6
6
|
"repository": {
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@nullcc/code-coverage-client": "1.4.2",
|
|
14
|
-
"@testring/child-process": "0.6.14-alpha.
|
|
15
|
-
"@testring/devtool-extension": "0.6.14-alpha.
|
|
16
|
-
"@testring/dwnld-collector-crx": "0.6.14-alpha.
|
|
17
|
-
"@testring/logger": "0.6.14-alpha.
|
|
18
|
-
"@testring/plugin-api": "0.6.14-alpha.
|
|
19
|
-
"@testring/types": "0.6.14-alpha.
|
|
14
|
+
"@testring/child-process": "0.6.14-alpha.6",
|
|
15
|
+
"@testring/devtool-extension": "0.6.14-alpha.6",
|
|
16
|
+
"@testring/dwnld-collector-crx": "0.6.14-alpha.6",
|
|
17
|
+
"@testring/logger": "0.6.14-alpha.6",
|
|
18
|
+
"@testring/plugin-api": "0.6.14-alpha.6",
|
|
19
|
+
"@testring/types": "0.6.14-alpha.6",
|
|
20
20
|
"@types/deepmerge": "2.2.3",
|
|
21
21
|
"@types/node": "22.8.5",
|
|
22
22
|
"@wdio/types": "9.2.2",
|
package/src/plugin/index.ts
CHANGED
|
@@ -526,7 +526,7 @@ export class SeleniumPlugin implements IBrowserProxyPlugin {
|
|
|
526
526
|
const client = this.getBrowserClient(applicant);
|
|
527
527
|
|
|
528
528
|
const element = await client.$(selector);
|
|
529
|
-
return element.click();
|
|
529
|
+
return options && Object.keys(options).length > 0 ? element.click(options) : element.click();
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
public async getSize(applicant: string, selector: string) {
|
|
@@ -671,10 +671,10 @@ export class SeleniumPlugin implements IBrowserProxyPlugin {
|
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
|
|
674
|
-
public async frame(applicant: string, frameID:
|
|
674
|
+
public async frame(applicant: string, frameID: any) {
|
|
675
675
|
await this.createClient(applicant);
|
|
676
676
|
const client = this.getBrowserClient(applicant);
|
|
677
|
-
return client.switchFrame(frameID
|
|
677
|
+
return client.switchFrame(frameID);
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
public async frameParent(applicant: string) {
|