@testring/plugin-selenium-driver 0.6.14-alpha.5 → 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.
@@ -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.6.14-alpha.5",
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.5",
15
- "@testring/devtool-extension": "0.6.14-alpha.5",
16
- "@testring/dwnld-collector-crx": "0.6.14-alpha.5",
17
- "@testring/logger": "0.6.14-alpha.5",
18
- "@testring/plugin-api": "0.6.14-alpha.5",
19
- "@testring/types": "0.6.14-alpha.5",
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",
@@ -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) {