@testring/plugin-selenium-driver 0.6.14-alpha.5 → 0.7.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/dist/plugin/index.js +1 -1
- package/package.json +7 -7
- package/src/plugin/index.ts +1 -1
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(options);
|
|
416
|
+
return options && Object.keys(options).length > 0 ? element.click(options) : element.click();
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
getSize(applicant, selector) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testring/plugin-selenium-driver",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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.
|
|
15
|
-
"@testring/devtool-extension": "0.
|
|
16
|
-
"@testring/dwnld-collector-crx": "0.
|
|
17
|
-
"@testring/logger": "0.
|
|
18
|
-
"@testring/plugin-api": "0.
|
|
19
|
-
"@testring/types": "0.
|
|
14
|
+
"@testring/child-process": "0.7.0",
|
|
15
|
+
"@testring/devtool-extension": "0.7.0",
|
|
16
|
+
"@testring/dwnld-collector-crx": "0.7.0",
|
|
17
|
+
"@testring/logger": "0.7.0",
|
|
18
|
+
"@testring/plugin-api": "0.7.0",
|
|
19
|
+
"@testring/types": "0.7.0",
|
|
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(options);
|
|
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) {
|