@winning-test/component 0.0.42 → 0.0.44
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/rhm5.6/page/Page.js +5 -0
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, 250)) {
|
|
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, 250)) {
|
|
165
165
|
await this.browser.waitUntilElementBeNotVisible(xpath);
|
|
166
166
|
}
|
|
167
167
|
} catch (error) {
|
package/package.json
CHANGED
package/rhm5.6/page/Page.js
CHANGED
|
@@ -163,6 +163,10 @@ class Page extends require("@winning-test/autotest-webui").Page {
|
|
|
163
163
|
if (await this.browser.isDisplayed(xpath, 200)) {
|
|
164
164
|
await this.browser.waitUntilElementBeNotVisible(xpath);
|
|
165
165
|
}
|
|
166
|
+
xpath = "//span[@id='processText'][contains(text(),'请稍候')]";
|
|
167
|
+
if (await this.browser.isDisplayed(xpath, 100)) {
|
|
168
|
+
await this.browser.waitUntilElementBeNotVisible(xpath);
|
|
169
|
+
}
|
|
166
170
|
} catch (error) {
|
|
167
171
|
|
|
168
172
|
}
|
|
@@ -191,6 +195,7 @@ class Page extends require("@winning-test/autotest-webui").Page {
|
|
|
191
195
|
xpath = `//*[@id='menuconfig']//*[text()='${firstItem}']/ancestor::ul/li[2]//*[text()='${secondItem}']`;
|
|
192
196
|
await that.blockComponent(xpath).click();
|
|
193
197
|
await that.switchToActiveFrame();
|
|
198
|
+
await that.loading();
|
|
194
199
|
}
|
|
195
200
|
|
|
196
201
|
}
|