@winning-test/component 0.0.83 → 0.0.84

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.83",
3
+ "version": "0.0.84",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "scripts": {
@@ -27,6 +27,19 @@ class LeftMenuComponent extends require("./Component") {
27
27
  await (await this.browser.findElement(xpath)).click();
28
28
  await this.browser.sleep(LeftMenuComponent.delayTime);
29
29
  await this.browser.switchToFrame("//iframe[@id='prmIframe']");
30
+
31
+ try {
32
+ const xpath = "//*[@class='datagrid-mask-msg' and (not (ancestor-or-self::*[contains(@style,'display: none')]))]";
33
+ if (await this.browser.isDisplayed(xpath, 200)) {
34
+ await this.browser.waitUntilElementBeNotVisible(xpath);
35
+ }
36
+ xpath = "//span[@id='processText'][contains(text(),'请稍候')]";
37
+ if (await this.browser.isDisplayed(xpath, 100)) {
38
+ await this.browser.waitUntilElementBeNotVisible(xpath);
39
+ }
40
+ } catch (error) {
41
+
42
+ }
30
43
  }
31
44
 
32
45