@winning-test/component 0.0.1

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.
Files changed (53) hide show
  1. package/CustomSequencer.js +30 -0
  2. package/infusion60/component/BlockComponent.js +224 -0
  3. package/infusion60/component/ButtonComponent.js +23 -0
  4. package/infusion60/component/CheckboxComponent.js +46 -0
  5. package/infusion60/component/Component.js +78 -0
  6. package/infusion60/component/DialogComponent.js +23 -0
  7. package/infusion60/component/InputComponent.js +31 -0
  8. package/infusion60/component/LeftMenuComponent.js +38 -0
  9. package/infusion60/component/ListComponent.js +53 -0
  10. package/infusion60/component/MessageComponent.js +23 -0
  11. package/infusion60/component/SelectComponent.js +76 -0
  12. package/infusion60/component/SwitchComponent.js +47 -0
  13. package/infusion60/component/TableComponent.js +119 -0
  14. package/infusion60/component/TextComponent.js +23 -0
  15. package/infusion60/component/TopMenuComponent.js +32 -0
  16. package/infusion60/page/Page.js +170 -0
  17. package/infusion60/test/component.test.js +65 -0
  18. package/infusion60/test/component.test.json +12 -0
  19. package/jest.config.js +7 -0
  20. package/package.json +23 -0
  21. package/rhm5.6/component/BlockComponent.js +187 -0
  22. package/rhm5.6/component/ButtonComponent.js +23 -0
  23. package/rhm5.6/component/CheckboxComponent.js +53 -0
  24. package/rhm5.6/component/Component.js +95 -0
  25. package/rhm5.6/component/DialogComponent.js +23 -0
  26. package/rhm5.6/component/InputComponent.js +31 -0
  27. package/rhm5.6/component/LeftMenuComponent.js +35 -0
  28. package/rhm5.6/component/RadioComponent.js +35 -0
  29. package/rhm5.6/component/SelectComponent.js +45 -0
  30. package/rhm5.6/component/TableComponent.js +90 -0
  31. package/rhm5.6/component/TextComponent.js +23 -0
  32. package/rhm5.6/component/TopMenuComponent.js +34 -0
  33. package/rhm5.6/page/Page.js +143 -0
  34. package/rhm5.6/test/component.test.js +61 -0
  35. package/rhm5.6/test/component.test.json +16 -0
  36. package/winex60/component/BlockComponent.js +241 -0
  37. package/winex60/component/ButtonComponent.js +23 -0
  38. package/winex60/component/CascaderComponent.js +51 -0
  39. package/winex60/component/CheckboxComponent.js +46 -0
  40. package/winex60/component/Component.js +78 -0
  41. package/winex60/component/DialogComponent.js +234 -0
  42. package/winex60/component/InputComponent.js +31 -0
  43. package/winex60/component/LeftMenuComponent.js +78 -0
  44. package/winex60/component/ListComponent.js +52 -0
  45. package/winex60/component/MessageComponent.js +57 -0
  46. package/winex60/component/RadioComponent.js +41 -0
  47. package/winex60/component/SelectComponent.js +73 -0
  48. package/winex60/component/SwitchComponent.js +45 -0
  49. package/winex60/component/TableComponent.js +107 -0
  50. package/winex60/component/TextComponent.js +23 -0
  51. package/winex60/page/Page.js +158 -0
  52. package/winex60/test/component.test.js +36 -0
  53. package/winex60/test/select.test.js +26 -0
@@ -0,0 +1,30 @@
1
+ const Sequencer = require('@jest/test-sequencer').default;
2
+
3
+ class CustomSequencer extends Sequencer {
4
+ /**
5
+ * Select tests for shard requested via --shard=shardIndex/shardCount
6
+ * Sharding is applied before sorting
7
+ */
8
+ shard(tests, {shardIndex, shardCount}) {
9
+ const shardSize = Math.ceil(tests.length / shardCount);
10
+ const shardStart = shardSize * (shardIndex - 1);
11
+ const shardEnd = shardSize * shardIndex;
12
+
13
+ return [...tests]
14
+ .sort((a, b) => (a.path > b.path ? 1 : -1))
15
+ .slice(shardStart, shardEnd);
16
+ }
17
+
18
+ /**
19
+ * Sort test to determine order of execution
20
+ * Sorting is applied after sharding
21
+ */
22
+ sort(tests) {
23
+ // Test structure information
24
+ // https://github.com/facebook/jest/blob/6b8b1404a1d9254e7d5d90a8934087a9c9899dab/packages/jest-runner/src/types.ts#L17-L21
25
+ const copyTests = Array.from(tests);
26
+ return copyTests.sort((testA, testB) => (testA.path > testB.path ? 1 : -1));
27
+ }
28
+ }
29
+
30
+ module.exports = CustomSequencer;
@@ -0,0 +1,224 @@
1
+ /**
2
+ * 块组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class BlockComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 块组件
9
+ * @param {Browser} browser
10
+ * @param {String} id id
11
+ * @param {String} xpath xpath
12
+ */
13
+ constructor(browser, id, xpath) {
14
+ super(browser);
15
+ this.id = id;
16
+ this.xpath = xpath;
17
+ }
18
+
19
+ _createXpath() {
20
+ if (this.id) {
21
+ return `//*[@id='${this.id}']`
22
+ }
23
+ if (this.xpath) {
24
+ return this.xpath;
25
+ }
26
+ }
27
+
28
+ /**
29
+ * 获取块组件
30
+ * @param {String} id id
31
+ * @param {String} xpath xpath
32
+ * @returns 块组件
33
+ */
34
+ blockComponent(id, xpath) {
35
+ let that = this;
36
+ class _BlockComponent extends BlockComponent {
37
+ _createRootXpath() {
38
+ return that.getXpath();
39
+ }
40
+ }
41
+ return new _BlockComponent(this.browser, id, xpath);
42
+ }
43
+
44
+ /**
45
+ * 获取按钮组件
46
+ * @param {String} text 文本
47
+ * @returns 按钮组件
48
+ */
49
+ buttonComponent(text) {
50
+ let that = this;
51
+ class ButtonComponent extends require("./ButtonComponent") {
52
+ _createRootXpath() {
53
+ return that.getXpath();
54
+ }
55
+ }
56
+ return new ButtonComponent(this.browser, text);
57
+ }
58
+
59
+ /**
60
+ * 获取复选框组件
61
+ * @param {String} label 标签
62
+ * @returns 复选框组件
63
+ */
64
+ checkboxComponent(label) {
65
+ let that = this;
66
+ class CheckboxComponent extends require("./CheckboxComponent") {
67
+ _createRootXpath() {
68
+ return that.getXpath();
69
+ }
70
+ }
71
+ return new CheckboxComponent(this.browser, label);
72
+ }
73
+
74
+ /**
75
+ * 获取对话框组件
76
+ * @param {String} title 标题
77
+ * @returns 对话框组件
78
+ */
79
+ dialogComponent(title) {
80
+ let that = this;
81
+ class DialogComponent extends require("./DialogComponent") {
82
+ _createRootXpath() {
83
+ return that.getXpath();
84
+ }
85
+ }
86
+ return new DialogComponent(this.browser, title);
87
+ }
88
+
89
+ /**
90
+ * 获取输入框组件
91
+ * @param {String} placeholder 背景文字
92
+ * @param {String} label 标签
93
+ * @returns 输入框组件
94
+ */
95
+ inputComponent(placeholder, label) {
96
+ let that = this;
97
+ class InputComponent extends require("./InputComponent") {
98
+ _createRootXpath() {
99
+ return that.getXpath();
100
+ }
101
+ }
102
+ return new InputComponent(this.browser, placeholder, label);
103
+ }
104
+
105
+ /**
106
+ * 获取左侧菜单组件
107
+ * @returns 左侧菜单组件
108
+ */
109
+ leftMenuComponent() {
110
+ let that = this;
111
+ class LeftMenuComponent extends require("./LeftMenuComponent") {
112
+ _createRootXpath() {
113
+ return that.getXpath();
114
+ }
115
+ }
116
+ return new LeftMenuComponent(this.browser);
117
+ }
118
+
119
+ /**
120
+ * 获取列表组件
121
+ * @returns 列表组件
122
+ */
123
+ listComponent() {
124
+ let that = this;
125
+ class ListComponent extends require("./ListComponent") {
126
+ _createRootXpath() {
127
+ return that.getXpath();
128
+ }
129
+ }
130
+ return new ListComponent(this.browser);
131
+ }
132
+
133
+ /**
134
+ * 获取消息组件
135
+ * @param {Stirng} text 文本
136
+ * @returns 消息组件
137
+ */
138
+ messageComponent(text) {
139
+ let that = this;
140
+ class MessageComponent extends require("./MessageComponent") {
141
+ _createRootXpath() {
142
+ return that.getXpath();
143
+ }
144
+ }
145
+ return new MessageComponent(this.browser, text);
146
+ }
147
+
148
+ /**
149
+ * 获取选择器组件
150
+ * @param {String} placeholder 背景文字
151
+ * @param {String} label 标签
152
+ * @returns 选择器组件
153
+ */
154
+ selectComponent(placeholder, label) {
155
+ let that = this;
156
+ class SelectComponent extends require("./SelectComponent") {
157
+ _createRootXpath() {
158
+ return that.getXpath();
159
+ }
160
+ }
161
+ return new SelectComponent(this.browser, placeholder, label);
162
+ }
163
+
164
+ /**
165
+ * 获取开关组件
166
+ * @param {String} label 标签
167
+ * @returns 开关组件
168
+ */
169
+ switchComponent(label) {
170
+ let that = this;
171
+ class SwitchComponent extends require("./SwitchComponent") {
172
+ _createRootXpath() {
173
+ return that.getXpath();
174
+ }
175
+ }
176
+ return new SwitchComponent(this.browser, label);
177
+ }
178
+
179
+ /**
180
+ * 获取表格组件
181
+ * @returns 表格组件
182
+ */
183
+ tableComponent() {
184
+ let that = this;
185
+ class TableComponent extends require("./TableComponent") {
186
+ _createRootXpath() {
187
+ return that.getXpath();
188
+ }
189
+ }
190
+ return new TableComponent(this.browser);
191
+ }
192
+
193
+ /**
194
+ * 获取文本组件
195
+ * @param {String} text 文本
196
+ * @returns 文本组件
197
+ */
198
+ textComponent(text) {
199
+ let that = this;
200
+ class TextComponent extends require("./TextComponent") {
201
+ _createRootXpath() {
202
+ return that.getXpath();
203
+ }
204
+ }
205
+ return new TextComponent(this.browser, text);
206
+ }
207
+
208
+ /**
209
+ * 获取顶部菜单组件
210
+ * @returns 顶部菜单组件
211
+ */
212
+ topMenuComponent() {
213
+ let that = this;
214
+ class TopMenuComponent extends require("./TopMenuComponent") {
215
+ _createRootXpath() {
216
+ return that.getXpath();
217
+ }
218
+ }
219
+ return new TopMenuComponent(this.browser);
220
+ }
221
+
222
+ }
223
+
224
+ module.exports = BlockComponent;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 按钮组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class ButtonComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 按钮组件
9
+ * @param {Browser} browser 浏览器
10
+ * @param {String} text 文本
11
+ */
12
+ constructor(browser, text) {
13
+ super(browser);
14
+ this.text = text;
15
+ }
16
+
17
+ _createXpath() {
18
+ return `//*[normalize-space(text())='${this.text}']/ancestor-or-self::button`;
19
+ }
20
+
21
+ }
22
+
23
+ module.exports = ButtonComponent;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * 复选框组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class CheckboxComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 复选框组件
9
+ * @param {Browser} browser 浏览器
10
+ * @param {String} label 标签
11
+ */
12
+ constructor(browser, label) {
13
+ super(browser);
14
+ this.label = label;
15
+ }
16
+
17
+ _createXpath() {
18
+ if (this.label) {
19
+ return `//*[normalize-space(text())='${this.label}']/..//input[@type='checkbox']`;
20
+ }
21
+ return "//input[@type='checkbox']";
22
+ }
23
+
24
+ /**
25
+ * 选择
26
+ */
27
+ async select() {
28
+ if (!(await (await this.browser.findElement(this.getXpath())).isSelected())) {
29
+ await (await this.browser.findElement(this.getXpath())).click();
30
+ await this.browser.sleep(CheckboxComponent.delayTime);
31
+ }
32
+ }
33
+
34
+ /**
35
+ * 取消选择
36
+ */
37
+ async unselect() {
38
+ if (await (await this.browser.findElement(this.getXpath())).isSelected()) {
39
+ await (await this.browser.findElement(this.getXpath())).click();
40
+ await this.browser.sleep(CheckboxComponent.delayTime);
41
+ }
42
+ }
43
+
44
+ }
45
+
46
+ module.exports = CheckboxComponent;
@@ -0,0 +1,78 @@
1
+ /**
2
+ * 组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class Component extends require("@winning-test/autotest-webui/src/Component") {
6
+
7
+ static delayTime = 200;
8
+
9
+ /**
10
+ * 组件
11
+ * @param {Browser} browser
12
+ */
13
+ constructor(browser) {
14
+ super(browser)
15
+ }
16
+
17
+ getXpath() {
18
+ return `${super.getXpath()}[not (ancestor-or-self::*[contains(@style,'display: none')])]`;
19
+ }
20
+
21
+ async click() {
22
+ await super.click();
23
+ await this.browser.sleep(Component.delayTime);
24
+ }
25
+
26
+ async doubleClick() {
27
+ await super.doubleClick();
28
+ await this.browser.sleep(Component.delayTime);
29
+ }
30
+
31
+ async input(...agrs) {
32
+ await super.input(...agrs);
33
+ await this.browser.sleep(Component.delayTime);
34
+ }
35
+
36
+ async clear() {
37
+ await super.clear();
38
+ await this.browser.sleep(Component.delayTime);
39
+ }
40
+
41
+ async getText() {
42
+ await this.browser.sleep(Component.delayTime);
43
+ return await super.getText();
44
+ }
45
+
46
+ async getValue() {
47
+ await this.browser.sleep(Component.delayTime);
48
+ return await super.getValue();
49
+ }
50
+
51
+
52
+ async getAttribute(attributeName) {
53
+ await this.browser.sleep(Component.delayTime);
54
+ return await super.getAttribute(attributeName);
55
+ }
56
+
57
+ async waitUntilBeDisabled() {
58
+ await super.waitUntilBeDisabled();
59
+ await this.browser.sleep(Component.delayTime);
60
+ }
61
+
62
+ async waitUntilBeEnabled() {
63
+ await super.waitUntilBeEnabled();
64
+ await this.browser.sleep(Component.delayTime);
65
+ }
66
+
67
+ async waitUntilBeNotVisible() {
68
+ await super.waitUntilBeNotVisible();
69
+ await this.browser.sleep(Component.delayTime);
70
+ }
71
+
72
+ async waitUntilBeVisible() {
73
+ await super.waitUntilBeVisible();
74
+ await this.browser.sleep(Component.delayTime);
75
+ }
76
+ }
77
+
78
+ module.exports = Component;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 对话框组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class DialogComponent extends require("./BlockComponent") {
6
+
7
+ /**
8
+ * 对话框组件
9
+ * @param {Browser} browser 浏览器
10
+ * @param {String} title 标题
11
+ */
12
+ constructor(browser, title) {
13
+ super(browser);
14
+ this.title = title;
15
+ }
16
+
17
+ _createXpath() {
18
+ return `//*[contains(normalize-space(text()),'${this.title}')]/ancestor::*[@class='w-modal' or @role='dialog']`;
19
+ }
20
+
21
+ }
22
+
23
+ module.exports = DialogComponent;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * 输入框组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class InputComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 输入框组件
9
+ * @param {Browser} browser 浏览器
10
+ * @param {String} placeholder 背景文字
11
+ * @param {String} label 标签
12
+ */
13
+ constructor(browser, placeholder, label) {
14
+ super(browser);
15
+ this.placeholder = placeholder;
16
+ this.label = label;
17
+ }
18
+
19
+ _createXpath() {
20
+ if (this.placeholder) {
21
+ return `//input[@placeholder='${this.placeholder}']`;
22
+ }
23
+ if (this.label) {
24
+ return `//*[normalize-space(text())='${this.label}']/..//input`;
25
+ }
26
+ return "//input[@type='text']"
27
+ }
28
+
29
+ }
30
+
31
+ module.exports = InputComponent;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * 左侧菜单组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class LeftMenuComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 左侧菜单组件
9
+ * @param {Browser} browser 浏览器
10
+ */
11
+ constructor(browser) {
12
+ super(browser);
13
+ }
14
+
15
+ _createXpath() {
16
+ return "//*[contains(@class,'w-menu is-vertical')]";
17
+ }
18
+
19
+ /**
20
+ * 选择菜单
21
+ * @param {...String} menuItems 菜单项
22
+ */
23
+ async select(...menuItems) {
24
+ let xpath = null;
25
+ if (menuItems.length === 1) {
26
+ xpath = `${this.getXpath()}//*[normalize-space(text())='${menuItems[0]}']`
27
+ }
28
+ if (menuItems.length === 2) {
29
+ xpath = `${this.getXpath()}//*[normalize-space(text())='${menuItems[0]}']//ancestor::*[contains(@class,'w-submenu')]//*[normalize-space(text())='${menuItems[1]}']`
30
+ }
31
+ await (await this.browser.findElement(xpath)).click();
32
+ await this.browser.sleep(LeftMenuComponent.delayTime);
33
+ }
34
+
35
+
36
+ }
37
+
38
+ module.exports = LeftMenuComponent;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * 列表组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class ListComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 列表组件
9
+ * @param {Browser} browser 浏览器
10
+ */
11
+ constructor(browser) {
12
+ super(browser);
13
+ }
14
+
15
+ _createXpath() {
16
+ return `//ul`;
17
+ }
18
+
19
+ /**
20
+ * 选择列表
21
+ * @param {...String} items 列表项
22
+ */
23
+ async select(...items) {
24
+ let xpath = `${this.getXpath()}`;
25
+ await (await this.browser.findElement(xpath)).waitUntilBeVisible();
26
+ for (let i = 0; i < items.length; i++) {
27
+ let item = items[i];
28
+ xpath = `${this.getXpath()}//*[normalize-space(text())='${item}']/ancestor-or-self::li`;
29
+ await (await this.browser.findElement(xpath)).waitUntilBeVisible();
30
+ await (await this.browser.findElement(xpath)).scrollIntoView();
31
+ await (await this.browser.findElement(xpath)).click();
32
+ await this.browser.sleep(ListComponent.delayTime);
33
+ }
34
+ }
35
+
36
+ /**
37
+ * 获取列表项
38
+ * @returns 列表项
39
+ */
40
+ async getListItems() {
41
+ let ret = [];
42
+ let xpath = `${this.getXpath()}//li`;
43
+ let elements = await this.browser.findElements(xpath);
44
+ for (let i = 0; i < elements.length; i++) {
45
+ let element = elements[i];
46
+ ret.push(await element.getText(true));
47
+ }
48
+ return ret;
49
+ }
50
+
51
+ }
52
+
53
+ module.exports = ListComponent;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 消息组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class MeaasgeComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 消息组件
9
+ * @param {Browser} browser 浏览器
10
+ * @param {String} text 文本
11
+ */
12
+ constructor(browser, text) {
13
+ super(browser);
14
+ this.text = text;
15
+ }
16
+
17
+ _createXpath() {
18
+ return `//*[contains(text(),'${this.text}')]/ancestor::*[contains(@class,'w-message ')]`
19
+ }
20
+
21
+ }
22
+
23
+ module.exports = MeaasgeComponent;
@@ -0,0 +1,76 @@
1
+ /**
2
+ * 选择器组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class SelectComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 选择器组件
9
+ * @param {Browser} browser 浏览器
10
+ * @param {String} placeholder 背景文字
11
+ * @param {String} label 标签
12
+ */
13
+ constructor(browser, placeholder, label) {
14
+ super(browser);
15
+ this.placeholder = placeholder;
16
+ this.label = label;
17
+ }
18
+
19
+ _createXpath() {
20
+ if (this.placeholder) {
21
+ return `//input[@placeholder='${this.placeholder}']`;
22
+ }
23
+ if (this.label) {
24
+ return `//*[normalize-space(text())='${this.label}']/..//input`;
25
+ }
26
+ return "//input[@type='text']";
27
+ }
28
+
29
+ /**
30
+ * 选择选项
31
+ * @param {...String} items 选项
32
+ */
33
+ async select(...items) {
34
+ let count = 5;
35
+ while (count > 0) {
36
+ try {
37
+ await this._select(...items);
38
+ if (items.length > 1){ // 多选不检查value
39
+ break;
40
+ }
41
+ const value = await this.getValue();
42
+ if (!(value && items.join().indexOf(value) !== -1)) {
43
+ throw new Error(`选择${items}失败`);
44
+ }
45
+ break;
46
+ } catch (error) {
47
+ if (count > 1) {
48
+ count--;
49
+ await this.browser.sleep(100);
50
+ } else {
51
+ throw error;
52
+ }
53
+ }
54
+ }
55
+ await this.browser.sleep(SelectComponent.delayTime);
56
+ }
57
+
58
+ async _select(...items) {
59
+ class ListComponent extends require("./ListComponent") {
60
+ _createXpath() {
61
+ return "//*[@class='w-scrollbar']"
62
+ }
63
+ }
64
+ let xpath = this.getXpath();
65
+ await (await this.browser.findElement(xpath)).click();
66
+ let listComponent = new ListComponent(this.browser);
67
+ await listComponent.select(...items);
68
+ if (items.length > 1) {
69
+ xpath = this.getXpath();
70
+ await (await this.browser.findElement(xpath)).click();
71
+ }
72
+ }
73
+
74
+ }
75
+
76
+ module.exports = SelectComponent;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * 开关组件类
3
+ * @作者 MaoJJ
4
+ */
5
+ class SwitchComponent extends require("./Component") {
6
+
7
+ /**
8
+ * 开关组件
9
+ * @param {Browser} browser 浏览器
10
+ * @param {String} label 标签
11
+ */
12
+ constructor(browser, label) {
13
+ super(browser);
14
+ this.label = label;
15
+ }
16
+
17
+ _createXpath() {
18
+ return `//*[normalize-space(text())='${this.label}']//input[@type='checkbox']`;
19
+ }
20
+
21
+ /**
22
+ * 打开
23
+ */
24
+ async on() {
25
+ let xpath = this.getXpath();
26
+ let checked = Boolean(await (await this.browser.findElement(xpath)).getAttribute("checked"));
27
+ if (!checked) {
28
+ await (await this.browser.findElement(xpath)).click();
29
+ await this.browser.sleep(SwitchComponent.delayTime);
30
+ }
31
+ }
32
+
33
+ /**
34
+ * 关闭
35
+ */
36
+ async off() {
37
+ let xpath = this.getXpath();
38
+ let checked = Boolean(await (await this.browser.findElement(xpath)).getAttribute("checked"));
39
+ if (checked) {
40
+ await (await this.browser.findElement(xpath)).click();
41
+ await this.browser.sleep(SwitchComponent.delayTime);
42
+ }
43
+ }
44
+
45
+ }
46
+
47
+ module.exports = SwitchComponent;