@winning-test/component 0.0.60 → 0.0.62
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 +1 -1
- package/{winexRegion → winex-region}/component/TableComponent.js +4 -0
- package/winex60/component/TableComponent.js +1 -1
- package/winex60/page/Page.js +14 -0
- /package/{winexRegion → winex-region}/component/BlockComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/ButtonComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/CascaderComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/CheckboxComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/Component.js +0 -0
- /package/{winexRegion → winex-region}/component/DialogComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/InputComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/LeftMenuComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/ListComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/MessageComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/RadioComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/SelectComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/SwitchComponent.js +0 -0
- /package/{winexRegion → winex-region}/component/TextComponent.js +0 -0
- /package/{winexRegion → winex-region}/page/Page.js +0 -0
- /package/{winexRegion → winex-region}/test/component.test.js +0 -0
- /package/{winexRegion → winex-region}/test/component.test.json +0 -0
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ class TableComponent extends require("./Component") {
|
|
|
47
47
|
titles[i] = (await titles[i].getText(true)).trim() || `#${String(i).padStart(3, "0")}`;
|
|
48
48
|
}
|
|
49
49
|
// 处理表体
|
|
50
|
-
xpath =
|
|
50
|
+
xpath = `(${this.getXpath()}${this._createBodyXapth()})[1]//tr`;
|
|
51
51
|
let trs = await this.browser.findElements(xpath);
|
|
52
52
|
for (let i = 0; i < trs.length; i++) {
|
|
53
53
|
xpath = `(${this.getXpath()}${this._createBodyXapth()}//tr)[${i + 1}]/td`;
|
package/winex60/page/Page.js
CHANGED
|
@@ -152,6 +152,20 @@ class Page extends require("@winning-test/autotest-webui").Page {
|
|
|
152
152
|
return new RadioComponent(this.browser, label)
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
/**
|
|
156
|
+
* 等待加载
|
|
157
|
+
*/
|
|
158
|
+
async loading() {
|
|
159
|
+
try {
|
|
160
|
+
const xpath = "//*[contains(text(),'加载中')][not (ancestor-or-self::*[contains(@style,'display: none')])]";
|
|
161
|
+
if (await this.browser.isDisplayed(xpath, 1000)) {
|
|
162
|
+
await this.browser.waitUntilElementBeNotVisible(xpath);
|
|
163
|
+
}
|
|
164
|
+
} catch (error) {
|
|
165
|
+
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
155
169
|
}
|
|
156
170
|
|
|
157
171
|
module.exports = Page;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|