@winning-test/component 0.0.103 → 0.0.104
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
|
@@ -124,6 +124,20 @@ class BlockComponent extends require("./Component") {
|
|
|
124
124
|
return new ListComponent(this.browser);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* 获取复合列表组件
|
|
129
|
+
* @returns 列表组件
|
|
130
|
+
*/
|
|
131
|
+
listCompositeComponent() {
|
|
132
|
+
let that = this;
|
|
133
|
+
class ListCompositeComponent extends require("./ListCompositeComponent") {
|
|
134
|
+
_createRootXpath() {
|
|
135
|
+
return that.getXpath();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return new ListCompositeComponent(this.browser);
|
|
139
|
+
}
|
|
140
|
+
|
|
127
141
|
/**
|
|
128
142
|
* 获取消息组件
|
|
129
143
|
* @param {Stirng} text 文本
|
|
@@ -170,6 +184,22 @@ class BlockComponent extends require("./Component") {
|
|
|
170
184
|
return new SelectComponent(this.browser, placeholder, label, forceMulti);
|
|
171
185
|
}
|
|
172
186
|
|
|
187
|
+
/**
|
|
188
|
+
* 获取复合选择器组件
|
|
189
|
+
* @param {String} placeholder 背景文字
|
|
190
|
+
* @param {String} label 标签
|
|
191
|
+
* @returns 选择器组件
|
|
192
|
+
*/
|
|
193
|
+
selectCompositeComponent(placeholder, label) {
|
|
194
|
+
let that = this;
|
|
195
|
+
class SelectCompositeComponent extends require("./SelectCompositeComponent") {
|
|
196
|
+
_createRootXpath() {
|
|
197
|
+
return that.getXpath();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return new SelectCompositeComponent(this.browser, placeholder, label);
|
|
201
|
+
}
|
|
202
|
+
|
|
173
203
|
/**
|
|
174
204
|
* 获取开关组件
|
|
175
205
|
* @param {String} label 标签
|
|
@@ -229,20 +259,6 @@ class BlockComponent extends require("./Component") {
|
|
|
229
259
|
return new TextComponent(this.browser, text);
|
|
230
260
|
}
|
|
231
261
|
|
|
232
|
-
/**
|
|
233
|
-
* 获取顶部菜单组件
|
|
234
|
-
* @returns 顶部菜单组件
|
|
235
|
-
*/
|
|
236
|
-
topMenuComponent(firstItem) {
|
|
237
|
-
let that = this;
|
|
238
|
-
class TopMenuComponent extends require("./TopMenuComponent") {
|
|
239
|
-
_createRootXpath() {
|
|
240
|
-
return that.getXpath();
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return new TopMenuComponent(this.browser, firstItem);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
262
|
}
|
|
247
263
|
|
|
248
264
|
module.exports = BlockComponent;
|
|
@@ -11,11 +11,10 @@ class SelectCompositeComponent extends require("./Component") {
|
|
|
11
11
|
* @param {String} placeholder 背景文字
|
|
12
12
|
* @param {String} label 标签
|
|
13
13
|
*/
|
|
14
|
-
constructor(browser, placeholder, label
|
|
14
|
+
constructor(browser, placeholder, label) {
|
|
15
15
|
super(browser);
|
|
16
16
|
this.placeholder = placeholder;
|
|
17
17
|
this.label = label;
|
|
18
|
-
this.forceMulti = forceMulti;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
_createXpath() {
|
package/rfds5.6/page/Page.js
CHANGED
|
@@ -134,8 +134,8 @@ class Page extends require("@winning-test/autotest-webui").Page {
|
|
|
134
134
|
* @param {String} forceMulti 多选标志
|
|
135
135
|
* @returns 选择器组件
|
|
136
136
|
*/
|
|
137
|
-
selectCompositeComponent(placeholder, label
|
|
138
|
-
return new SelectCompositeComponent(this.browser, placeholder, label
|
|
137
|
+
selectCompositeComponent(placeholder, label) {
|
|
138
|
+
return new SelectCompositeComponent(this.browser, placeholder, label);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/**
|
|
@@ -174,14 +174,6 @@ class Page extends require("@winning-test/autotest-webui").Page {
|
|
|
174
174
|
return new TextComponent(this.browser, text);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
/**
|
|
178
|
-
* 获取顶部菜单组件
|
|
179
|
-
* @returns 顶部菜单组件
|
|
180
|
-
*/
|
|
181
|
-
topMenuComponent(firstItem) {
|
|
182
|
-
return new TopMenuComponent(this.browser, firstItem);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
177
|
/**
|
|
186
178
|
* 等待加载
|
|
187
179
|
*/
|