@progress/kendo-e2e 3.4.1 → 4.0.0
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/dist/components/actionsheet.d.ts +7 -0
- package/dist/components/actionsheet.js +28 -0
- package/dist/components/actionsheet.js.map +1 -0
- package/dist/components/appbar.d.ts +6 -0
- package/dist/components/appbar.js +13 -0
- package/dist/components/appbar.js.map +1 -0
- package/dist/components/arcgauge.d.ts +7 -0
- package/dist/components/arcgauge.js +37 -0
- package/dist/components/arcgauge.js.map +1 -0
- package/dist/components/autocomplete.d.ts +6 -3
- package/dist/components/autocomplete.js +6 -5
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/bottomnavigation.d.ts +8 -0
- package/dist/components/bottomnavigation.js +30 -0
- package/dist/components/bottomnavigation.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/breadcrumb.js +46 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/calendar.d.ts +20 -0
- package/dist/components/calendar.js +89 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/captcha.d.ts +14 -0
- package/dist/components/captcha.js +65 -0
- package/dist/components/captcha.js.map +1 -0
- package/dist/components/chat.d.ts +12 -0
- package/dist/components/chat.js +58 -0
- package/dist/components/chat.js.map +1 -0
- package/dist/components/checkbox.d.ts +10 -0
- package/dist/components/checkbox.js +39 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/colorpicker.d.ts +17 -0
- package/dist/components/colorpicker.js +94 -0
- package/dist/components/colorpicker.js.map +1 -0
- package/dist/components/columnmenu.d.ts +12 -0
- package/dist/components/columnmenu.js +62 -0
- package/dist/components/columnmenu.js.map +1 -0
- package/dist/components/combobox.d.ts +7 -3
- package/dist/components/combobox.js +37 -1
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/const.d.ts +17 -8
- package/dist/components/const.js +21 -12
- package/dist/components/const.js.map +1 -1
- package/dist/components/datepicker.d.ts +14 -0
- package/dist/components/datepicker.js +62 -0
- package/dist/components/datepicker.js.map +1 -0
- package/dist/components/daterangepicker.d.ts +18 -0
- package/dist/components/daterangepicker.js +78 -0
- package/dist/components/daterangepicker.js.map +1 -0
- package/dist/components/datetimepicker.d.ts +15 -0
- package/dist/components/datetimepicker.js +67 -0
- package/dist/components/datetimepicker.js.map +1 -0
- package/dist/components/dialog.d.ts +10 -0
- package/dist/components/dialog.js +41 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/dockmanager.d.ts +12 -0
- package/dist/components/dockmanager.js +58 -0
- package/dist/components/dockmanager.js.map +1 -0
- package/dist/components/drawer.d.ts +10 -0
- package/dist/components/drawer.js +39 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown.d.ts +18 -9
- package/dist/components/dropdown.js +63 -29
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/dropdownbutton.d.ts +9 -0
- package/dist/components/dropdownbutton.js +40 -0
- package/dist/components/dropdownbutton.js.map +1 -0
- package/dist/components/dropdownlist.d.ts +9 -0
- package/dist/components/dropdownlist.js +44 -0
- package/dist/components/dropdownlist.js.map +1 -0
- package/dist/components/dropdowntree.d.ts +11 -0
- package/dist/components/dropdowntree.js +53 -0
- package/dist/components/dropdowntree.js.map +1 -0
- package/dist/components/editor.d.ts +11 -0
- package/dist/components/editor.js +70 -0
- package/dist/components/editor.js.map +1 -0
- package/dist/components/expansionpanel.d.ts +12 -0
- package/dist/components/expansionpanel.js +60 -0
- package/dist/components/expansionpanel.js.map +1 -0
- package/dist/components/filemanager.d.ts +8 -0
- package/dist/components/filemanager.js +27 -0
- package/dist/components/filemanager.js.map +1 -0
- package/dist/components/filter.d.ts +33 -0
- package/dist/components/filter.js +147 -0
- package/dist/components/filter.js.map +1 -0
- package/dist/components/filtermenu.d.ts +34 -0
- package/dist/components/filtermenu.js +99 -0
- package/dist/components/filtermenu.js.map +1 -0
- package/dist/components/flatcolorpicker.d.ts +12 -0
- package/dist/components/flatcolorpicker.js +47 -0
- package/dist/components/flatcolorpicker.js.map +1 -0
- package/dist/components/floatingactionbutton.d.ts +10 -0
- package/dist/components/floatingactionbutton.js +42 -0
- package/dist/components/floatingactionbutton.js.map +1 -0
- package/dist/components/form.d.ts +16 -0
- package/dist/components/form.js +61 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/gantt.d.ts +20 -0
- package/dist/components/gantt.js +98 -0
- package/dist/components/gantt.js.map +1 -0
- package/dist/components/gauge.d.ts +8 -0
- package/dist/components/gauge.js +31 -0
- package/dist/components/gauge.js.map +1 -0
- package/dist/components/grid.d.ts +15 -19
- package/dist/components/grid.js +32 -62
- package/dist/components/grid.js.map +1 -1
- package/dist/components/imagedditor.d.ts +30 -0
- package/dist/components/imagedditor.js +134 -0
- package/dist/components/imagedditor.js.map +1 -0
- package/dist/components/index.d.ts +68 -0
- package/dist/components/index.js +68 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.d.ts +14 -0
- package/dist/components/input.js +48 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/listbox.d.ts +14 -0
- package/dist/components/listbox.js +59 -0
- package/dist/components/listbox.js.map +1 -0
- package/dist/components/listview.d.ts +23 -0
- package/dist/components/listview.js +100 -0
- package/dist/components/listview.js.map +1 -0
- package/dist/components/maskedtextbox.d.ts +10 -0
- package/dist/components/maskedtextbox.js +41 -0
- package/dist/components/maskedtextbox.js.map +1 -0
- package/dist/components/mediaplayer.d.ts +22 -0
- package/dist/components/mediaplayer.js +128 -0
- package/dist/components/mediaplayer.js.map +1 -0
- package/dist/components/menu.d.ts +24 -0
- package/dist/components/menu.js +108 -0
- package/dist/components/menu.js.map +1 -0
- package/dist/components/multicolumncombobox.d.ts +8 -0
- package/dist/components/multicolumncombobox.js +36 -0
- package/dist/components/multicolumncombobox.js.map +1 -0
- package/dist/components/multiselect.d.ts +12 -0
- package/dist/components/multiselect.js +55 -0
- package/dist/components/multiselect.js.map +1 -0
- package/dist/components/numerictextbox.d.ts +12 -0
- package/dist/components/numerictextbox.js +57 -0
- package/dist/components/numerictextbox.js.map +1 -0
- package/dist/components/pager.d.ts +19 -4
- package/dist/components/pager.js +69 -11
- package/dist/components/pager.js.map +1 -1
- package/dist/components/panelbar.d.ts +16 -0
- package/dist/components/panelbar.js +72 -0
- package/dist/components/panelbar.js.map +1 -0
- package/dist/components/pdfviewer.d.ts +16 -0
- package/dist/components/pdfviewer.js +68 -0
- package/dist/components/pdfviewer.js.map +1 -0
- package/dist/components/pivotgrid-legacy.d.ts +91 -0
- package/dist/components/pivotgrid-legacy.js +447 -0
- package/dist/components/pivotgrid-legacy.js.map +1 -0
- package/dist/components/pivotgrid.d.ts +79 -0
- package/dist/components/pivotgrid.js +405 -0
- package/dist/components/pivotgrid.js.map +1 -0
- package/dist/components/popup.d.ts +1 -1
- package/dist/components/progressbar.d.ts +8 -0
- package/dist/components/progressbar.js +28 -0
- package/dist/components/progressbar.js.map +1 -0
- package/dist/components/radiobutton.d.ts +10 -0
- package/dist/components/radiobutton.js +39 -0
- package/dist/components/radiobutton.js.map +1 -0
- package/dist/components/rating.d.ts +11 -0
- package/dist/components/rating.js +43 -0
- package/dist/components/rating.js.map +1 -0
- package/dist/components/scheduler.d.ts +35 -0
- package/dist/components/scheduler.js +142 -0
- package/dist/components/scheduler.js.map +1 -0
- package/dist/components/scrollview.d.ts +15 -0
- package/dist/components/scrollview.js +63 -0
- package/dist/components/scrollview.js.map +1 -0
- package/dist/components/signature.d.ts +15 -0
- package/dist/components/signature.js +47 -0
- package/dist/components/signature.js.map +1 -0
- package/dist/components/slider.d.ts +13 -0
- package/dist/components/slider.js +53 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/splitbutton.d.ts +17 -0
- package/dist/components/splitbutton.js +80 -0
- package/dist/components/splitbutton.js.map +1 -0
- package/dist/components/splitter.d.ts +14 -0
- package/dist/components/splitter.js +64 -0
- package/dist/components/splitter.js.map +1 -0
- package/dist/components/spreadsheet.d.ts +19 -0
- package/dist/components/spreadsheet.js +48 -0
- package/dist/components/spreadsheet.js.map +1 -0
- package/dist/components/stepper.d.ts +11 -0
- package/dist/components/stepper.js +45 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch.d.ts +10 -0
- package/dist/components/switch.js +40 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +57 -0
- package/dist/components/table.js +237 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabstrip.d.ts +18 -0
- package/dist/components/tabstrip.js +73 -0
- package/dist/components/tabstrip.js.map +1 -0
- package/dist/components/textbox.d.ts +15 -0
- package/dist/components/textbox.js +69 -0
- package/dist/components/textbox.js.map +1 -0
- package/dist/components/tilelayout.d.ts +11 -0
- package/dist/components/tilelayout.js +39 -0
- package/dist/components/tilelayout.js.map +1 -0
- package/dist/components/timedurationpicker.d.ts +27 -0
- package/dist/components/timedurationpicker.js +146 -0
- package/dist/components/timedurationpicker.js.map +1 -0
- package/dist/components/timeline.d.ts +27 -0
- package/dist/components/timeline.js +150 -0
- package/dist/components/timeline.js.map +1 -0
- package/dist/components/timepicker.d.ts +19 -0
- package/dist/components/timepicker.js +97 -0
- package/dist/components/timepicker.js.map +1 -0
- package/dist/components/toolbar.d.ts +11 -0
- package/dist/components/toolbar.js +34 -0
- package/dist/components/toolbar.js.map +1 -0
- package/dist/components/treelist.d.ts +13 -0
- package/dist/components/treelist.js +51 -0
- package/dist/components/treelist.js.map +1 -0
- package/dist/components/treeview.d.ts +16 -0
- package/dist/components/treeview.js +113 -0
- package/dist/components/treeview.js.map +1 -0
- package/dist/components/ui-component.d.ts +3 -1
- package/dist/components/ui-component.js +16 -0
- package/dist/components/ui-component.js.map +1 -1
- package/dist/components/upload.d.ts +20 -0
- package/dist/components/upload.js +99 -0
- package/dist/components/upload.js.map +1 -0
- package/dist/components/window.d.ts +12 -0
- package/dist/components/window.js +50 -0
- package/dist/components/window.js.map +1 -0
- package/dist/components/wizard.d.ts +12 -0
- package/dist/components/wizard.js +31 -0
- package/dist/components/wizard.js.map +1 -0
- package/dist/selenium/web-app.d.ts +2 -0
- package/dist/selenium/web-app.js +28 -1
- package/dist/selenium/web-app.js.map +1 -1
- package/package.json +2 -1
package/dist/components/grid.js
CHANGED
|
@@ -10,12 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Grid = void 0;
|
|
13
|
-
const ui_component_1 = require("./ui-component");
|
|
14
|
-
const pager_1 = require("./pager");
|
|
15
13
|
const const_1 = require("./const");
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
|
|
14
|
+
const selenium_1 = require("../selenium");
|
|
15
|
+
const table_1 = require("./table");
|
|
16
|
+
const pager_1 = require("./pager");
|
|
17
|
+
class Grid extends table_1.Table {
|
|
19
18
|
constructor(browser, locator = Grid.SELECTOR, parentElement) {
|
|
20
19
|
super(browser, locator, parentElement);
|
|
21
20
|
this.parentElement = parentElement;
|
|
@@ -25,93 +24,62 @@ class Grid extends ui_component_1.UIComponent {
|
|
|
25
24
|
return new pager_1.Pager(this.browser, pager_1.Pager.SELECTOR, yield this.root());
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
|
-
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
return yield this.findChild(Grid.TOOLBAR_ADD_BUTTON);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
saveChanges() {
|
|
27
|
+
groupRows() {
|
|
34
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return yield this.
|
|
29
|
+
return yield this.browser.findChildren(yield this.root(), "tbody > tr.k-grouping-row");
|
|
36
30
|
});
|
|
37
31
|
}
|
|
38
|
-
|
|
32
|
+
groupRowsCount() {
|
|
39
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
|
|
41
|
-
return yield this.findChild(locator);
|
|
34
|
+
return (yield this.groupRows()).length;
|
|
42
35
|
});
|
|
43
36
|
}
|
|
44
|
-
|
|
37
|
+
groupingHeader() {
|
|
45
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
|
|
47
|
-
? browser_1.By.xpath(`//thead//tr//th[.='${text}']`)
|
|
48
|
-
: browser_1.By.xpath(`//thead//tr//th[contains(., '${text}')]`);
|
|
49
|
-
return yield this.findChild(locator);
|
|
39
|
+
return yield this.findChild('.k-grouping-header');
|
|
50
40
|
});
|
|
51
41
|
}
|
|
52
|
-
|
|
42
|
+
groupHeaderByIndex(index) {
|
|
53
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
|
|
55
|
-
if ((yield header.findElements(browser_1.By.css(".k-svg-i-sort-asc-small"))).length > 0) {
|
|
56
|
-
return enums_1.SortType.Asc;
|
|
57
|
-
}
|
|
58
|
-
if ((yield header.findElements(browser_1.By.css(".k-svg-i-sort-desc-small"))).length > 0) {
|
|
59
|
-
return enums_1.SortType.Desc;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return enums_1.SortType.None;
|
|
63
|
-
}
|
|
44
|
+
return yield this.findChild(`.k-grouping-header .k-chip-list > .k-chip:nth-of-type(${index})`);
|
|
64
45
|
});
|
|
65
46
|
}
|
|
66
|
-
|
|
47
|
+
groupByColumn(title) {
|
|
67
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
|
|
49
|
+
const header = yield this.headerByText(title);
|
|
50
|
+
yield this.browser.dragTo(header, yield this.groupingHeader());
|
|
69
51
|
});
|
|
70
52
|
}
|
|
71
|
-
|
|
53
|
+
ungroupdByColumn(title) {
|
|
72
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
|
|
55
|
+
const groupHeader = selenium_1.By.xpath(`.//*[contains(@class, "k-chip-list")]/*[contains(@class, 'k-chip') and .="${title}"]//*[contains(@class, "k-chip-remove-action")]`);
|
|
56
|
+
yield (yield this.findChild(groupHeader)).click();
|
|
74
57
|
});
|
|
75
58
|
}
|
|
76
59
|
masterRows() {
|
|
77
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
return yield this.browser.findChildren(yield this.root(), "tbody tr.k-master-row");
|
|
61
|
+
return yield this.browser.findChildren(yield this.root(), "tbody > tr.k-master-row", { waitForChild: false });
|
|
79
62
|
});
|
|
80
63
|
}
|
|
81
|
-
|
|
82
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
return yield this.browser.findChild(yield this.root(), `tbody tr.k-master-row:nth-of-type(${index})`);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
cell(row, column) {
|
|
64
|
+
masterRowsCount() {
|
|
87
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
|
|
89
|
-
return yield this.findChild(locator);
|
|
66
|
+
return (yield this.masterRows()).length;
|
|
90
67
|
});
|
|
91
68
|
}
|
|
92
|
-
|
|
69
|
+
masterRow(index) {
|
|
93
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
|
|
95
|
-
return yield this.
|
|
71
|
+
yield this.browser.wait(() => __awaiter(this, void 0, void 0, function* () { return (yield this.masterRowsCount()) > index; }), { message: `Rows cound is less than ${index}.` });
|
|
72
|
+
return (yield this.masterRows())[index - 1];
|
|
96
73
|
});
|
|
97
74
|
}
|
|
98
|
-
|
|
75
|
+
focusedElement() {
|
|
99
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
|
|
101
|
-
yield this.browser.click(input);
|
|
102
|
-
if (clear) {
|
|
103
|
-
yield this.browser.sendControlKeyCombination('a');
|
|
104
|
-
yield this.browser.sendKey(browser_1.Key.BACK_SPACE);
|
|
105
|
-
}
|
|
106
|
-
yield this.browser.sendKey(text);
|
|
107
|
-
if (sendEnter) {
|
|
108
|
-
yield this.browser.sendKey(browser_1.Key.ENTER);
|
|
109
|
-
}
|
|
77
|
+
return yield this.findChild(".k-focus");
|
|
110
78
|
});
|
|
111
79
|
}
|
|
112
|
-
|
|
80
|
+
loader() {
|
|
113
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
-
return yield this.findChild(
|
|
82
|
+
return yield this.findChild(Grid.LOADER);
|
|
115
83
|
});
|
|
116
84
|
}
|
|
117
85
|
isEmpty() {
|
|
@@ -121,7 +89,9 @@ class Grid extends ui_component_1.UIComponent {
|
|
|
121
89
|
}
|
|
122
90
|
}
|
|
123
91
|
Grid.SELECTOR = const_1.SELECTORS.GRID;
|
|
124
|
-
Grid.
|
|
125
|
-
Grid.
|
|
92
|
+
Grid.LOADER = ".k-loader-container";
|
|
93
|
+
Grid.SORT_ASC_ICON = ".k-svg-i-sort-asc-small";
|
|
94
|
+
Grid.SORT_DESC_ICON = ".k-svg-i-sort-desc-small";
|
|
95
|
+
Grid.SORT_ORDER = ".k-sort-order";
|
|
126
96
|
exports.Grid = Grid;
|
|
127
97
|
//# sourceMappingURL=grid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/components/grid.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../src/components/grid.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AACpC,0CAAsD;AACtD,mCAAgC;AAChC,mCAAgC;AAEhC,MAAa,IAAK,SAAQ,aAAK;IAO3B,YAAY,OAAgB,EAAE,UAAuB,IAAI,CAAC,QAAQ,EAAY,aAAwC;QAClH,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADmC,kBAAa,GAAb,aAAa,CAA2B;IAEtH,CAAC;IAEY,KAAK;;YACd,OAAO,IAAI,aAAK,CAAC,IAAI,CAAC,OAAO,EAAE,aAAK,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACtE,CAAC;KAAA;IAEY,SAAS;;YAClB,OAAO,MAAM,IAAI,CAAC,OAAO,C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AAC,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC,GAAG,KAAK,CAAA,GAAA,EAAE,EAAE,OAAO,EAAE,2BAA2B,KAAK,GAAG,EAAE,CAAC,CAAC;YAC9H,OAAO,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAChD,CAAC;KAAA;IAEY,cAAc;;YACvB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC5C,CAAC;KAAA;IAEY,MAAM;;YACf,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7C,CAAC;KAAA;IAEY,OAAO;;YAChB,OAAO,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;QAChG,CAAC;KAAA;;AA/Da,aAAQ,GAAG,iBAAS,CAAC,IAAI,CAAC;AAC1B,WAAM,GAAG,qBAAqB,CAAC;AAC/B,kBAAa,GAAG,yBAAyB,CAAC;AAC1C,mBAAc,GAAG,0BAA0B,CAAC;AAC5C,eAAU,GAAG,eAAe,CAAC;AALlC,oBAAI"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DropDownList } from "./dropdownlist";
|
|
2
|
+
import { NumericTextBox } from "./numerictextbox";
|
|
3
|
+
import { UIComponent } from "./ui-component";
|
|
4
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
5
|
+
export declare class ImageEditor extends UIComponent {
|
|
6
|
+
protected parentElement?: WebElement | By | string;
|
|
7
|
+
static SELECTOR: string;
|
|
8
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
9
|
+
canvas(): Promise<WebElement>;
|
|
10
|
+
uploadButton(): Promise<WebElement>;
|
|
11
|
+
downloadButton(): Promise<WebElement>;
|
|
12
|
+
actionPane(): Promise<WebElement>;
|
|
13
|
+
ratioDropDown(): Promise<DropDownList>;
|
|
14
|
+
undoButton(): Promise<WebElement>;
|
|
15
|
+
redoButton(): Promise<WebElement>;
|
|
16
|
+
cropButton(): Promise<WebElement>;
|
|
17
|
+
resizeButton(): Promise<WebElement>;
|
|
18
|
+
zoomInButton(): Promise<WebElement>;
|
|
19
|
+
zoomOutButton(): Promise<WebElement>;
|
|
20
|
+
zoomOptionsDropDown(): Promise<DropDownList>;
|
|
21
|
+
actionPanePortraitButton(): Promise<WebElement>;
|
|
22
|
+
actionPaneLandscapeButton(): Promise<WebElement>;
|
|
23
|
+
widthNumeric(): Promise<NumericTextBox>;
|
|
24
|
+
heightNumeric(): Promise<NumericTextBox>;
|
|
25
|
+
measureWidthDopDown(): Promise<DropDownList>;
|
|
26
|
+
measureHeightDopDown(): Promise<DropDownList>;
|
|
27
|
+
lockAspectRatio(): Promise<WebElement>;
|
|
28
|
+
cancelButton(): Promise<WebElement>;
|
|
29
|
+
confirmButton(): Promise<WebElement>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ImageEditor = void 0;
|
|
13
|
+
const dropdownlist_1 = require("./dropdownlist");
|
|
14
|
+
const numerictextbox_1 = require("./numerictextbox");
|
|
15
|
+
const ui_component_1 = require("./ui-component");
|
|
16
|
+
class ImageEditor extends ui_component_1.UIComponent {
|
|
17
|
+
constructor(browser, locator = ImageEditor.SELECTOR, parentElement) {
|
|
18
|
+
super(browser, locator, parentElement);
|
|
19
|
+
this.parentElement = parentElement;
|
|
20
|
+
}
|
|
21
|
+
canvas() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return yield this.findChild('.k-imageeditor-content canvas');
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
uploadButton() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield this.findChild('.k-imageeditor-toolbar button[title="Open Image"]');
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
downloadButton() {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return yield this.findChild('.k-imageeditor-toolbar button[title="Save Image"]');
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
actionPane() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return yield this.findChild('.k-imageeditor-action-pane');
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
ratioDropDown() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
const locator = '.k-dropdownlist[aria-controls="aspectRatio_listbox"]';
|
|
44
|
+
return new dropdownlist_1.DropDownList(this.browser, locator, yield this.root());
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
undoButton() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
return yield this.findChild('.k-imageeditor-toolbar button[title="Undo"]');
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
redoButton() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
return yield this.findChild('.k-imageeditor-toolbar button[title="Redo"]');
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
cropButton() {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return yield this.findChild('.k-imageeditor-toolbar button[title="Crop"]');
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
resizeButton() {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
return yield this.findChild('.k-imageeditor-toolbar button[title="Resize"]');
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
zoomInButton() {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
return yield this.findChild('.k-imageeditor-toolbar button[title="Zoom In"]');
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
zoomOutButton() {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
return yield this.findChild('.k-imageeditor-toolbar button[title="Zoom Out"]');
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
zoomOptionsDropDown() {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
return new dropdownlist_1.DropDownList(this.browser, ".k-toolbar-item .k-dropdownlist", yield this.root());
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
actionPanePortraitButton() {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
return yield this.findChild('.k-imageeditor-action-pane .k-button-group .k-button:nth-of-type(1)');
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
actionPaneLandscapeButton() {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
return yield this.findChild('.k-imageeditor-action-pane .k-button-group .k-button:nth-of-type(2)');
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
widthNumeric() {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const locator = 'div[data-container-for="width"] .k-numerictextbox';
|
|
95
|
+
return new numerictextbox_1.NumericTextBox(this.browser, locator, yield this.root());
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
heightNumeric() {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const locator = 'div[data-container-for="height"] .k-numerictextbox';
|
|
101
|
+
return new numerictextbox_1.NumericTextBox(this.browser, locator, yield this.root());
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
measureWidthDopDown() {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const locator = 'div[data-container-for="measureW"] .k-dropdownlist';
|
|
107
|
+
return new dropdownlist_1.DropDownList(this.browser, locator, yield this.root());
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
measureHeightDopDown() {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const locator = 'div[data-container-for="measureH"] .k-dropdownlist';
|
|
113
|
+
return new dropdownlist_1.DropDownList(this.browser, locator, yield this.root());
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
lockAspectRatio() {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return yield this.findChild('.k-imageeditor-action-pane input[id="lockAspectRatio"]');
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
cancelButton() {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return yield this.findChild('.k-imageeditor-action-pane button[data-action="cancel"]');
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
confirmButton() {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
return yield this.findChild('.k-imageeditor-action-pane button[data-action="confirm"]');
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
ImageEditor.SELECTOR = '.k-imageeditor';
|
|
133
|
+
exports.ImageEditor = ImageEditor;
|
|
134
|
+
//# sourceMappingURL=imagedditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imagedditor.js","sourceRoot":"","sources":["../../src/components/im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KAAA;IAEK,eAAe;;YACjB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,wDAAwD,CAAC,CAAC;QAC1F,CAAC;KAAA;IAEK,YAAY;;YACd,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,yDAAyD,CAAC,CAAC;QAC3F,CAAC;KAAA;IAEK,aAAa;;YACf,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,0DAA0D,CAAC,CAAC;QAC5F,CAAC;KAAA;;AA7Fa,oBAAQ,GAAG,gBAAgB,CAAC;AADjC,kCAAW"}
|
|
@@ -1,9 +1,77 @@
|
|
|
1
|
+
export * from "./actionsheet";
|
|
2
|
+
export * from "./appbar";
|
|
3
|
+
export * from "./arcgauge";
|
|
1
4
|
export * from "./autocomplete";
|
|
5
|
+
export * from "./bottomnavigation";
|
|
6
|
+
export * from "./breadcrumb";
|
|
7
|
+
export * from "./calendar";
|
|
8
|
+
export * from "./captcha";
|
|
9
|
+
export * from "./chat";
|
|
10
|
+
export * from "./checkbox";
|
|
11
|
+
export * from "./colorpicker";
|
|
12
|
+
export * from "./columnmenu";
|
|
2
13
|
export * from "./combobox";
|
|
3
14
|
export * from "./const";
|
|
15
|
+
export * from "./datepicker";
|
|
16
|
+
export * from "./daterangepicker";
|
|
17
|
+
export * from "./datetimepicker";
|
|
18
|
+
export * from "./dialog";
|
|
19
|
+
export * from "./dockmanager";
|
|
20
|
+
export * from "./drawer";
|
|
4
21
|
export * from "./dropdown";
|
|
22
|
+
export * from "./dropdownbutton";
|
|
23
|
+
export * from "./dropdownlist";
|
|
24
|
+
export * from "./dropdowntree";
|
|
25
|
+
export * from "./editor";
|
|
5
26
|
export * from "./enums";
|
|
27
|
+
export * from "./expansionpanel";
|
|
28
|
+
export * from "./filemanager";
|
|
29
|
+
export * from "./filter";
|
|
30
|
+
export * from "./filtermenu";
|
|
31
|
+
export * from "./flatcolorpicker";
|
|
32
|
+
export * from "./floatingactionbutton";
|
|
33
|
+
export * from "./form";
|
|
34
|
+
export * from "./gantt";
|
|
35
|
+
export * from "./gauge";
|
|
6
36
|
export * from "./grid";
|
|
37
|
+
export * from "./imagedditor";
|
|
38
|
+
export * from "./input";
|
|
39
|
+
export * from "./listbox";
|
|
40
|
+
export * from "./listview";
|
|
41
|
+
export * from "./maskedtextbox";
|
|
42
|
+
export * from "./mediaplayer";
|
|
43
|
+
export * from "./menu";
|
|
44
|
+
export * from "./multicolumncombobox";
|
|
45
|
+
export * from "./multiselect";
|
|
46
|
+
export * from "./numerictextbox";
|
|
7
47
|
export * from "./pager";
|
|
48
|
+
export * from "./panelbar";
|
|
49
|
+
export * from "./pdfviewer";
|
|
50
|
+
export * from "./pivotgrid";
|
|
8
51
|
export * from "./popup";
|
|
52
|
+
export * from "./progressbar";
|
|
53
|
+
export * from "./radiobutton";
|
|
54
|
+
export * from "./rating";
|
|
55
|
+
export * from "./scheduler";
|
|
56
|
+
export * from "./scrollview";
|
|
57
|
+
export * from "./signature";
|
|
58
|
+
export * from "./slider";
|
|
59
|
+
export * from "./splitbutton";
|
|
60
|
+
export * from "./splitter";
|
|
61
|
+
export * from "./spreadsheet";
|
|
62
|
+
export * from "./stepper";
|
|
63
|
+
export * from "./switch";
|
|
64
|
+
export * from "./table";
|
|
65
|
+
export * from "./tabstrip";
|
|
66
|
+
export * from "./textbox";
|
|
67
|
+
export * from "./tilelayout";
|
|
68
|
+
export * from "./timedurationpicker";
|
|
69
|
+
export * from "./timeline";
|
|
70
|
+
export * from "./timepicker";
|
|
71
|
+
export * from "./toolbar";
|
|
72
|
+
export * from "./treelist";
|
|
73
|
+
export * from "./treeview";
|
|
9
74
|
export * from "./ui-component";
|
|
75
|
+
export * from "./upload";
|
|
76
|
+
export * from "./window";
|
|
77
|
+
export * from "./wizard";
|
package/dist/components/index.js
CHANGED
|
@@ -14,13 +14,81 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./actionsheet"), exports);
|
|
18
|
+
__exportStar(require("./appbar"), exports);
|
|
19
|
+
__exportStar(require("./arcgauge"), exports);
|
|
17
20
|
__exportStar(require("./autocomplete"), exports);
|
|
21
|
+
__exportStar(require("./bottomnavigation"), exports);
|
|
22
|
+
__exportStar(require("./breadcrumb"), exports);
|
|
23
|
+
__exportStar(require("./calendar"), exports);
|
|
24
|
+
__exportStar(require("./captcha"), exports);
|
|
25
|
+
__exportStar(require("./chat"), exports);
|
|
26
|
+
__exportStar(require("./checkbox"), exports);
|
|
27
|
+
__exportStar(require("./colorpicker"), exports);
|
|
28
|
+
__exportStar(require("./columnmenu"), exports);
|
|
18
29
|
__exportStar(require("./combobox"), exports);
|
|
19
30
|
__exportStar(require("./const"), exports);
|
|
31
|
+
__exportStar(require("./datepicker"), exports);
|
|
32
|
+
__exportStar(require("./daterangepicker"), exports);
|
|
33
|
+
__exportStar(require("./datetimepicker"), exports);
|
|
34
|
+
__exportStar(require("./dialog"), exports);
|
|
35
|
+
__exportStar(require("./dockmanager"), exports);
|
|
36
|
+
__exportStar(require("./drawer"), exports);
|
|
20
37
|
__exportStar(require("./dropdown"), exports);
|
|
38
|
+
__exportStar(require("./dropdownbutton"), exports);
|
|
39
|
+
__exportStar(require("./dropdownlist"), exports);
|
|
40
|
+
__exportStar(require("./dropdowntree"), exports);
|
|
41
|
+
__exportStar(require("./editor"), exports);
|
|
21
42
|
__exportStar(require("./enums"), exports);
|
|
43
|
+
__exportStar(require("./expansionpanel"), exports);
|
|
44
|
+
__exportStar(require("./filemanager"), exports);
|
|
45
|
+
__exportStar(require("./filter"), exports);
|
|
46
|
+
__exportStar(require("./filtermenu"), exports);
|
|
47
|
+
__exportStar(require("./flatcolorpicker"), exports);
|
|
48
|
+
__exportStar(require("./floatingactionbutton"), exports);
|
|
49
|
+
__exportStar(require("./form"), exports);
|
|
50
|
+
__exportStar(require("./gantt"), exports);
|
|
51
|
+
__exportStar(require("./gauge"), exports);
|
|
22
52
|
__exportStar(require("./grid"), exports);
|
|
53
|
+
__exportStar(require("./imagedditor"), exports);
|
|
54
|
+
__exportStar(require("./input"), exports);
|
|
55
|
+
__exportStar(require("./listbox"), exports);
|
|
56
|
+
__exportStar(require("./listview"), exports);
|
|
57
|
+
__exportStar(require("./maskedtextbox"), exports);
|
|
58
|
+
__exportStar(require("./mediaplayer"), exports);
|
|
59
|
+
__exportStar(require("./menu"), exports);
|
|
60
|
+
__exportStar(require("./multicolumncombobox"), exports);
|
|
61
|
+
__exportStar(require("./multiselect"), exports);
|
|
62
|
+
__exportStar(require("./numerictextbox"), exports);
|
|
23
63
|
__exportStar(require("./pager"), exports);
|
|
64
|
+
__exportStar(require("./panelbar"), exports);
|
|
65
|
+
__exportStar(require("./pdfviewer"), exports);
|
|
66
|
+
__exportStar(require("./pivotgrid"), exports);
|
|
24
67
|
__exportStar(require("./popup"), exports);
|
|
68
|
+
__exportStar(require("./progressbar"), exports);
|
|
69
|
+
__exportStar(require("./radiobutton"), exports);
|
|
70
|
+
__exportStar(require("./rating"), exports);
|
|
71
|
+
__exportStar(require("./scheduler"), exports);
|
|
72
|
+
__exportStar(require("./scrollview"), exports);
|
|
73
|
+
__exportStar(require("./signature"), exports);
|
|
74
|
+
__exportStar(require("./slider"), exports);
|
|
75
|
+
__exportStar(require("./splitbutton"), exports);
|
|
76
|
+
__exportStar(require("./splitter"), exports);
|
|
77
|
+
__exportStar(require("./spreadsheet"), exports);
|
|
78
|
+
__exportStar(require("./stepper"), exports);
|
|
79
|
+
__exportStar(require("./switch"), exports);
|
|
80
|
+
__exportStar(require("./table"), exports);
|
|
81
|
+
__exportStar(require("./tabstrip"), exports);
|
|
82
|
+
__exportStar(require("./textbox"), exports);
|
|
83
|
+
__exportStar(require("./tilelayout"), exports);
|
|
84
|
+
__exportStar(require("./timedurationpicker"), exports);
|
|
85
|
+
__exportStar(require("./timeline"), exports);
|
|
86
|
+
__exportStar(require("./timepicker"), exports);
|
|
87
|
+
__exportStar(require("./toolbar"), exports);
|
|
88
|
+
__exportStar(require("./treelist"), exports);
|
|
89
|
+
__exportStar(require("./treeview"), exports);
|
|
25
90
|
__exportStar(require("./ui-component"), exports);
|
|
91
|
+
__exportStar(require("./upload"), exports);
|
|
92
|
+
__exportStar(require("./window"), exports);
|
|
93
|
+
__exportStar(require("./wizard"), exports);
|
|
26
94
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B;AAC3B,iDAA+B;AAC/B,qDAAmC;AACnC,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,6CAA2B;AAC3B,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,+CAA6B;AAC7B,oDAAkC;AAClC,mDAAiC;AACjC,2CAAyB;AACzB,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,iDAA+B;AAC/B,2CAAyB;AACzB,0CAAwB;AACxB,mDAAiC;AACjC,gDAA8B;AAC9B,2CAAyB;AACzB,+CAA6B;AAC7B,oDAAkC;AAClC,yDAAuC;AACvC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,kDAAgC;AAChC,gDAA8B;AAC9B,yCAAuB;AACvB,wDAAsC;AACtC,gDAA8B;AAC9B,mDAAiC;AACjC,0CAAwB;AACxB,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,0CAAwB;AACxB,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,8CAA4B;AAC5B,+CAA6B;AAC7B,8CAA4B;AAC5B,2CAAyB;AACzB,gDAA8B;AAC9B,6CAA2B;AAC3B,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,6CAA2B;AAC3B,4CAA0B;AAC1B,+CAA6B;AAC7B,uDAAqC;AACrC,6CAA2B;AAC3B,+CAA6B;AAC7B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,iDAA+B;AAC/B,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class Input extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: By | string, parentElement?: WebElement | By | string);
|
|
7
|
+
input(): Promise<WebElement>;
|
|
8
|
+
getValue(): Promise<string>;
|
|
9
|
+
getPlaceholder(): Promise<string>;
|
|
10
|
+
setValue(value: string, { clear }?: {
|
|
11
|
+
clear?: boolean;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
clearValue(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Input = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const const_1 = require("./const");
|
|
15
|
+
class Input extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = Input.SELECTOR, parentElement) {
|
|
17
|
+
super(browser, locator, parentElement);
|
|
18
|
+
this.parentElement = parentElement;
|
|
19
|
+
}
|
|
20
|
+
input() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return yield this.findChild('.k-input-inner:not([style~="none;"])');
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
getValue() {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return (yield this.input()).getAttribute('value');
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
getPlaceholder() {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return (yield this.input()).getAttribute('placeholder');
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
setValue(value, { clear = true } = {}) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
yield this.browser.type(yield this.input(), value, { clear: clear });
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
clearValue() {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
yield this.setValue('');
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Input.SELECTOR = const_1.SELECTORS.INPUT;
|
|
47
|
+
exports.Input = Input;
|
|
48
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/components/input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAAoC;AAGpC,MAAa,KAAM,SAAQ,0BAAW;IAGlC,YAAY,OAAgB,EAAE,UAAuB,KAAK,CAAC,QAAQ,EAAY,aAAwC;QACnH,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADoC,kBAAa,GAAb,aAAa,CAA2B;IAEvH,CAAC;IAEK,KAAK;;YACP,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,sCAAsC,CAAC,CAAC;QACxE,CAAC;KAAA;IAEK,QAAQ;;YACV,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACtD,CAAC;KAAA;IAEK,cAAc;;YAChB,OAAO,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QAC5D,CAAC;KAAA;IAEK,QAAQ,CAAC,KAAa,EAAE,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE;;YAC/C,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QACzE,CAAC;KAAA;IAEK,UAAU;;YACZ,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC5B,CAAC;KAAA;;AAxBa,cAAQ,GAAG,iBAAS,CAAC,KAAK,CAAC;AADhC,sBAAK"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class ListBox extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
getItem(index: number): Promise<WebElement>;
|
|
8
|
+
getItemText(index: number): Promise<string>;
|
|
9
|
+
selectItem(index: number): Promise<void>;
|
|
10
|
+
isSelected(index: number): Promise<boolean>;
|
|
11
|
+
getItemsCount(): Promise<number>;
|
|
12
|
+
getToolBarButton(title: string): Promise<WebElement>;
|
|
13
|
+
clickToolBarButton(title: string): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ListBox = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const const_1 = require("./const");
|
|
15
|
+
class ListBox extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = ListBox.SELECTOR, parentElement) {
|
|
17
|
+
super(browser, locator, parentElement);
|
|
18
|
+
this.parentElement = parentElement;
|
|
19
|
+
}
|
|
20
|
+
getItem(index) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return yield this.findChild(`.k-list-item:nth-of-type(${index})`);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
getItemText(index) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return yield (yield this.getItem(index)).getText();
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
selectItem(index) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return yield (yield this.getItem(index)).click();
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
isSelected(index) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const selected = yield (yield this.getItem(index)).getAttribute('class');
|
|
38
|
+
return selected.includes('k-selected');
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
getItemsCount() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return (yield this.findChildren('.k-list-ul .k-list-item', { waitForChild: false })).length;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
getToolBarButton(title) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return yield this.findChild(`.k-button[title="${title}"]`);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
clickToolBarButton(title) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
yield (yield this.getToolBarButton(title)).click();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
ListBox.SELECTOR = const_1.SELECTORS.LISTBOX;
|
|
58
|
+
exports.ListBox = ListBox;
|
|
59
|
+
//# sourceMappingURL=listbox.js.map
|