@winning-test/component 0.0.10 → 0.0.12

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.10",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "scripts": {
@@ -166,6 +166,7 @@ class Page extends require("@winning-test/autotest-webui").Page {
166
166
  * @param {String} secondItem 二级菜单项
167
167
  */
168
168
  async select(firstItem, secondItem) {
169
+ await that.switchToDefultFrame();
169
170
  let xpath = "//*[@id='menuconfig']"
170
171
  if (!(await this.browser.isDisplayed(xpath, MenuComponent.delayTime))) {
171
172
  xpath = "//*[@id='menuconfig123']";