@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.
@@ -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.toString());
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.4",
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.4",
15
- "@testring/devtool-extension": "0.6.14-alpha.4",
16
- "@testring/dwnld-collector-crx": "0.6.14-alpha.4",
17
- "@testring/logger": "0.6.14-alpha.4",
18
- "@testring/plugin-api": "0.6.14-alpha.4",
19
- "@testring/types": "0.6.14-alpha.4",
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();
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: number) {
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.toString());
677
+ return client.switchFrame(frameID);
678
678
  }
679
679
 
680
680
  public async frameParent(applicant: string) {