@winning-test/component 0.0.13 → 0.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winning-test/component",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@winning-test/autotest-webui": "^0.1.35"
16
+ "@winning-test/autotest-webui": "^0.1.36"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/jest": "^29.5.1",
@@ -131,11 +131,14 @@ class Page extends require("@winning-test/autotest-webui").Page {
131
131
 
132
132
  /**
133
133
  * 切换到活动iframe
134
+ * @param {Boolean} isSwitchToLeft 是否切换到左侧iframe
134
135
  */
135
- async switchToActiveFrame() {
136
+ async switchToActiveFrame(isSwitchToLeft = true) {
136
137
  await this.browser.switchToFrame();
137
138
  await this.browser.switchToFrame("//iframe[@class='iframe-content active']");
138
- await this.browser.switchToFrame("//iframe[@id='prmIframe']");
139
+ if (isSwitchToLeft) {
140
+ await this.browser.switchToFrame("//iframe[@id='prmIframe']");
141
+ }
139
142
  }
140
143
 
141
144
  /**