@winning-test/component 0.0.42 → 0.0.43
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/edis5.6/page/Page.js +2 -2
- package/package.json +1 -1
package/edis5.6/page/Page.js
CHANGED
|
@@ -157,11 +157,11 @@ class Page extends require("@winning-test/autotest-webui").Page {
|
|
|
157
157
|
async loading() {
|
|
158
158
|
try {
|
|
159
159
|
let xpath = "//*[contains(@class,'el-loading-mask') and (not (ancestor-or-self::*[contains(@style,'display: none')]))]";
|
|
160
|
-
if (await this.browser.isDisplayed(xpath,
|
|
160
|
+
if (await this.browser.isDisplayed(xpath, 500)) {
|
|
161
161
|
await this.browser.waitUntilElementBeNotVisible(xpath);
|
|
162
162
|
}
|
|
163
163
|
xpath = "//*[contains(text(),'加载中') and (not (ancestor-or-self::*[contains(@style,'display: none')]))]";
|
|
164
|
-
if (await this.browser.isDisplayed(xpath,
|
|
164
|
+
if (await this.browser.isDisplayed(xpath, 500)) {
|
|
165
165
|
await this.browser.waitUntilElementBeNotVisible(xpath);
|
|
166
166
|
}
|
|
167
167
|
} catch (error) {
|