@progress/kendo-e2e 3.4.0 → 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/driver-manager.js +1 -0
- package/dist/selenium/driver-manager.js.map +1 -1
- 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
|
@@ -0,0 +1,99 @@
|
|
|
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.FilterMenu = exports.FilterOperator = exports.FilterLogic = void 0;
|
|
13
|
+
const selenium_1 = require("../selenium");
|
|
14
|
+
const ui_component_1 = require("./ui-component");
|
|
15
|
+
const dropdownlist_1 = require("./dropdownlist");
|
|
16
|
+
class FilterLogic {
|
|
17
|
+
}
|
|
18
|
+
FilterLogic.And = "And";
|
|
19
|
+
FilterLogic.Or = "Or";
|
|
20
|
+
exports.FilterLogic = FilterLogic;
|
|
21
|
+
class FilterOperator {
|
|
22
|
+
}
|
|
23
|
+
FilterOperator.EqualTo = "Is equal to";
|
|
24
|
+
FilterOperator.NotEqualTo = "Is not equal to";
|
|
25
|
+
FilterOperator.GreaterThanOrEqualTo = "Is greater than or equal to";
|
|
26
|
+
FilterOperator.GreaterThan = "Is greater than";
|
|
27
|
+
FilterOperator.LessThan = "Is less than";
|
|
28
|
+
FilterOperator.LessThanOrEqualTo = "Is less than or equal to";
|
|
29
|
+
FilterOperator.Contains = "Contains";
|
|
30
|
+
FilterOperator.DoesNotContain = "Does not contain";
|
|
31
|
+
FilterOperator.StartsWith = "Starts with";
|
|
32
|
+
FilterOperator.EndWith = "Ends with";
|
|
33
|
+
FilterOperator.IsNull = "Is null";
|
|
34
|
+
FilterOperator.IsNotNull = "Is not null";
|
|
35
|
+
FilterOperator.IsEmpty = "Is empty";
|
|
36
|
+
FilterOperator.IsNotEmpty = "Is not empty";
|
|
37
|
+
FilterOperator.HasValue = "Has value";
|
|
38
|
+
FilterOperator.HasNoValue = "Has no value";
|
|
39
|
+
exports.FilterOperator = FilterOperator;
|
|
40
|
+
class FilterMenu extends ui_component_1.UIComponent {
|
|
41
|
+
constructor(browser, locator, parentElement) {
|
|
42
|
+
super(browser, locator, parentElement);
|
|
43
|
+
this.parentElement = parentElement;
|
|
44
|
+
}
|
|
45
|
+
setFirstFilter(dropDownItem, value) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const dropdown = new dropdownlist_1.DropDownList(this.browser, "span[title='Operator']", yield this.root());
|
|
48
|
+
yield dropdown.selectItemByText(dropDownItem);
|
|
49
|
+
if (value !== null) {
|
|
50
|
+
const input = yield this.findChild('input[title="Value"]:not([style~="none;"])');
|
|
51
|
+
yield input.click();
|
|
52
|
+
yield this.browser.sendKey(value);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
setOperator(operator) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const dropdown = new dropdownlist_1.DropDownList(this.browser, "span[title='Filters logic']", yield this.root());
|
|
59
|
+
yield dropdown.selectItemByText(operator);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
setSecondFilter(dropDownItem, value) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const dropdown = new dropdownlist_1.DropDownList(this.browser, "span[title='Additional operator']", yield this.root());
|
|
65
|
+
yield dropdown.selectItemByText(dropDownItem);
|
|
66
|
+
if (value !== null) {
|
|
67
|
+
const input = yield this.findChild('input[title="Additional value"]:not([style~="none;"])');
|
|
68
|
+
yield input.click();
|
|
69
|
+
yield this.browser.sendKey(value);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
setBoolFilter(value) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const radio = value
|
|
76
|
+
? (yield this.findChildren('input[type="radio"]'))[0]
|
|
77
|
+
: (yield this.findChildren('input[type="radio"]'))[1];
|
|
78
|
+
yield radio.click();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
applyFilter() {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
yield (yield this.findChild(".k-actions button[type='submit']")).click();
|
|
84
|
+
yield this.browser.wait(selenium_1.EC.notVisible(this.locator), {
|
|
85
|
+
timeout: 5000, message: 'Failed to close popup on apply filter.'
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
clearFilter() {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
yield (yield this.findChild(".k-actions button[type='reset']")).click();
|
|
92
|
+
yield this.browser.wait(selenium_1.EC.notVisible(this.locator), {
|
|
93
|
+
timeout: 5000, message: 'Failed to close popup on apply.'
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.FilterMenu = FilterMenu;
|
|
99
|
+
//# sourceMappingURL=filtermenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filtermenu.js","sourceRoot":"","sources":["../../src/components/filtermenu.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA0D;AAC1D,iDAA6C;AAC7C,iDAA8C;AAE9C,MAAa,WAAW;;AACG,eAAG,GAAG,KAAK,CAAC;AACZ,cAAE,GAAG,IAAI,CAA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EAAE,IAAI,EAAE,OAAO,EAAE,wCAAwC;aACnE,CAAC,CAAC;QACP,CAAC;KAAA;IAEK,WAAW;;YACb,MAAM,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,iCAAiC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;YACxE,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAE,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;gBACjD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,iCAAiC;aAC5D,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAlDD,gCAkDC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class FlatColorPicker extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
previewColor(): Promise<WebElement>;
|
|
8
|
+
input(): Promise<WebElement>;
|
|
9
|
+
hvsRectangle(): Promise<WebElement>;
|
|
10
|
+
cancelButton(): Promise<WebElement>;
|
|
11
|
+
applyButton(): Promise<WebElement>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.FlatColorPicker = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
class FlatColorPicker extends ui_component_1.UIComponent {
|
|
15
|
+
constructor(browser, locator = FlatColorPicker.SELECTOR, parentElement) {
|
|
16
|
+
super(browser, locator, parentElement);
|
|
17
|
+
this.parentElement = parentElement;
|
|
18
|
+
}
|
|
19
|
+
previewColor() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
return yield this.findChild('.k-coloreditor-preview-color .k-color-preview-mask');
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
input() {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return yield this.findChild('.k-input input');
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
hvsRectangle() {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
return yield this.findChild('.k-hsv-rectangle');
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
cancelButton() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return yield this.findChild('.k-coloreditor-cancel');
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
applyButton() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return yield this.findChild('.k-coloreditor-apply');
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
FlatColorPicker.SELECTOR = '.k-flatcolorpicker';
|
|
46
|
+
exports.FlatColorPicker = FlatColorPicker;
|
|
47
|
+
//# sourceMappingURL=flatcolorpicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatcolorpicker.js","sourceRoot":"","sources":["../../src/components/flatcolorpicker.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAG7C,MAAa,eAAgB,SAAQ,0BAAW;IAG5C,YAAY,OAAgB,EAAE,OAAO,GAAG,eAAe,CAAC,QAAQ,EAAY,aAAwC;QAChH,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADiC,kBAAa,GAAb,aAAa,CAA2B;IAEpH,CAAC;IAEK,YAAY;;YACd,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,oDAAoD,CAAC,CAAC;QACtF,CAAC;KAAA;IAEK,KAAK;;YACP,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAClD,CAAC;KAAA;IAEK,YAAY;;YACd,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACpD,CAAC;KAAA;IAEK,YAAY;;YACd,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QACzD,CAAC;KAAA;IAEK,WAAW;;YACb,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QACxD,CAAC;KAAA;;AAxBa,wBAAQ,GAAG,oBAAoB,CAAC;AADrC,0CAAe"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class FloatingActionButton extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
popupLocator(): Promise<string>;
|
|
8
|
+
popup(): Promise<WebElement>;
|
|
9
|
+
getFabItem(text: string): Promise<WebElement>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.FloatingActionButton = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const selenium_1 = require("../selenium");
|
|
15
|
+
const const_1 = require("./const");
|
|
16
|
+
class FloatingActionButton extends ui_component_1.UIComponent {
|
|
17
|
+
constructor(browser, locator = FloatingActionButton.SELECTOR, parentElement) {
|
|
18
|
+
super(browser, locator, parentElement);
|
|
19
|
+
this.parentElement = parentElement;
|
|
20
|
+
}
|
|
21
|
+
popupLocator() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const idAttributeValue = yield (yield this.root()).getAttribute("id");
|
|
24
|
+
const popupLocator = idAttributeValue !== null ? `#${idAttributeValue}-list` : "#fab-list";
|
|
25
|
+
return popupLocator;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
popup() {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
return yield this.browser.find(yield this.popupLocator());
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
getFabItem(text) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const popup = yield this.popup();
|
|
36
|
+
return this.browser.findChild(popup, selenium_1.By.xpath(`.//li[@aria-label='${text}']`));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
FloatingActionButton.SELECTOR = const_1.SELECTORS.FLOATING_ACTION_BUTTON;
|
|
41
|
+
exports.FloatingActionButton = FloatingActionButton;
|
|
42
|
+
//# sourceMappingURL=floatingactionbutton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floatingactionbutton.js","sourceRoot":"","sources":["../../src/components/floatingactionbutton.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,0CAAsD;AACtD,mCAAoC;AAEpC,MAAa,oBAAqB,SAAQ,0BAAW;IAGjD,YAAY,OAAgB,EAAE,OAAO,GAAG,oBAAoB,CAAC,QAAQ,EAAY,aAAwC;QACrH,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADsC,kBAAa,GAAb,aAAa,CAA2B;IAEzH,CAAC;IAEK,YAAY;;YACd,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACtE,MAAM,YAAY,GAAG,gBAAgB,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,gBAAgB,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC;YAC3F,OAAO,YAAY,CAAC;QACxB,CAAC;KAAA;IAEK,KAAK;;YACP,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;QAC9D,CAAC;KAAA;IAEK,UAAU,CAAC,IAAY;;YACzB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,aAAE,CAAC,KAAK,CAAC,sBAAsB,IAAI,IAAI,CAAC,CAAC,CAAC;QACnF,CAAC;KAAA;;AAnBa,6BAAQ,GAAG,iBAAS,CAAC,sBAAsB,CAAC;AADjD,oDAAoB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class Form extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
static SUBMIT: string;
|
|
7
|
+
static CLEAR: string;
|
|
8
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
9
|
+
submitButton(): Promise<WebElement>;
|
|
10
|
+
clearButton(): Promise<WebElement>;
|
|
11
|
+
submit(): Promise<void>;
|
|
12
|
+
clear(): Promise<void>;
|
|
13
|
+
getValidationByIndex(index: number): Promise<WebElement>;
|
|
14
|
+
getValidationErrorByIndex(index: number): Promise<string>;
|
|
15
|
+
getSuccessMessage(): Promise<string>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.Form = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const selenium_1 = require("../selenium");
|
|
15
|
+
class Form extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = '.k-form', parentElement) {
|
|
17
|
+
super(browser, locator, parentElement);
|
|
18
|
+
this.parentElement = parentElement;
|
|
19
|
+
}
|
|
20
|
+
submitButton() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return yield this.findChild(Form.SUBMIT);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
clearButton() {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return yield this.findChild(Form.CLEAR);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
submit() {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
yield (yield this.submitButton()).click();
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
clear() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
yield (yield this.clearButton()).click();
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
getValidationByIndex(index) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
const parent = yield (yield this.root()).findElement(selenium_1.By.xpath('./..'));
|
|
43
|
+
return yield parent.findElement(selenium_1.By.css(`.k-validation-summary li:nth-of-type(${index})`));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
getValidationErrorByIndex(index) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return yield ((yield this.findChildren(`.k-form-error div`))[index]).getText();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
getSuccessMessage() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return yield (yield this.findChild('.k-messagebox-success')).getText();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
Form.SELECTOR = '.k-form';
|
|
58
|
+
Form.SUBMIT = '.k-button.k-form-submit';
|
|
59
|
+
Form.CLEAR = '.k-button.k-form-clear';
|
|
60
|
+
exports.Form = Form;
|
|
61
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../src/components/form.ts"],"names":[],"mappings":";;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AAE,CAAC;QAC3E,CAAC;KAAA;;AAnCa,aAAQ,GAAG,SAAS,CAAC;AACrB,WAAM,GAAG,yBAAyB,CAAC;AACnC,UAAK,GAAG,wBAAwB,CAAC;AAHtC,oBAAI"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TreeList } from "./treelist";
|
|
2
|
+
import { Window } from "./window";
|
|
3
|
+
import { UIComponent } from "./ui-component";
|
|
4
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
5
|
+
export declare class Gantt extends UIComponent {
|
|
6
|
+
protected parentElement?: WebElement | By | string;
|
|
7
|
+
static SELECTOR: string;
|
|
8
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
9
|
+
treeList(): Promise<TreeList>;
|
|
10
|
+
addTaskButton(): Promise<WebElement>;
|
|
11
|
+
saveTaskButton(): Promise<WebElement>;
|
|
12
|
+
addTask(): Promise<void>;
|
|
13
|
+
addTaskViaDropdown(index: number): Promise<void>;
|
|
14
|
+
getViewButton(view: string): Promise<WebElement>;
|
|
15
|
+
switchToView(view: string): Promise<void>;
|
|
16
|
+
getTask(index: number): Promise<WebElement>;
|
|
17
|
+
getTaskText(index: number): Promise<string>;
|
|
18
|
+
openTask(index: number): Promise<Window>;
|
|
19
|
+
getTimeLineHeaderText(): Promise<string>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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.Gantt = void 0;
|
|
13
|
+
const const_1 = require("./const");
|
|
14
|
+
const treelist_1 = require("./treelist");
|
|
15
|
+
const window_1 = require("./window");
|
|
16
|
+
const ui_component_1 = require("./ui-component");
|
|
17
|
+
const selenium_1 = require("../selenium");
|
|
18
|
+
class Gantt extends ui_component_1.UIComponent {
|
|
19
|
+
constructor(browser, locator = Gantt.SELECTOR, parentElement) {
|
|
20
|
+
super(browser, locator, parentElement);
|
|
21
|
+
this.parentElement = parentElement;
|
|
22
|
+
}
|
|
23
|
+
treeList() {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
return new treelist_1.TreeList(this.browser, '.k-gantt-treelist', yield this.root());
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
addTaskButton() {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
return yield this.findChild('button.k-gantt-create');
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
saveTaskButton() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
return yield this.findChild('button.k-gantt-update');
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
addTask() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const addTaskButton = yield this.addTaskButton();
|
|
41
|
+
yield addTaskButton.click();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
addTaskViaDropdown(index) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
yield this.browser.sleep(1000);
|
|
47
|
+
yield this.addTask();
|
|
48
|
+
yield this.browser.sleep(1000);
|
|
49
|
+
yield this.browser.wait(selenium_1.EC.isVisible('.k-animation-container'), { timeout: 3000, message: 'Failed to open add task dropdown.' });
|
|
50
|
+
yield this.browser.waitForAnimation('.k-animation-container li');
|
|
51
|
+
yield this.browser.click(`.k-animation-container li:nth-of-type(${index})`);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
getViewButton(view) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return yield this.findChild(`button.k-view-${view}`);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
switchToView(view) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const newView = yield this.getViewButton(view);
|
|
62
|
+
yield newView.click();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
getTask(index) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
yield this.browser.wait(() => __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const tasks = yield this.findChildren('.k-task-wrap div.k-task');
|
|
69
|
+
return tasks.length > index;
|
|
70
|
+
}), { pollTimeout: 50, timeout: 10000, message: `Failed find task with index ${index}` });
|
|
71
|
+
return (yield this.findChildren('.k-task-wrap div.k-task'))[index];
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
getTaskText(index) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
return yield (yield this.getTask(index)).getText();
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
openTask(index) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const task = yield this.getTask(index);
|
|
82
|
+
yield this.browser.driver.actions({ async: false, bridge: true }).doubleClick(task).perform();
|
|
83
|
+
yield this.browser.wait(selenium_1.EC.isVisible('.k-window .k-popup-edit-form'), {
|
|
84
|
+
timeout: 5000, message: 'Failed to open popup editor.'
|
|
85
|
+
});
|
|
86
|
+
return new window_1.Window(this.browser, '.k-window .k-popup-edit-form');
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
getTimeLineHeaderText() {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
const locator = '.k-gantt-timeline-pane tr:nth-of-type(1) td.k-header';
|
|
92
|
+
return yield (yield this.findChild(locator)).getText();
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
Gantt.SELECTOR = const_1.SELECTORS.GANTT;
|
|
97
|
+
exports.Gantt = Gantt;
|
|
98
|
+
//# sourceMappingURL=gantt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gantt.js","sourceRoot":"","sources":["../../src/components/gantt.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AACpC,yCAAsC;AACtC,qCAAkC;AAClC,iDAA6C;AAC7C,0CAA0D;AAE1D,MAAa,KAAM,SAAQ,0BAAW;IAGlC,YAAY,OAAgB,EAAE,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAY,aAAwC;QACtG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADuB,kBAAa,GAAb,aAAa,CAA2B;IAE1G,CAAC;IAEK,QAAQ;;YACV,OAAO,IAAI,mBAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QAE9E,CAAC;KAAA;IACK,aAAa;;YACf,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QACzD,CAAC;KAAA;IAEK,cAAc;;YAChB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QACzD,CAAC;KAAA;IAEK,OAAO;;YACT,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;YACjD,MAAM,aAAa,CAAC,KAAK,EAAE,CAAC;QAChC,CAAC;KAAA;IAEK,kBAAkB,CAAC,KAAa;;YAClC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,IAAI,CAAC,OAAO,EAAE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AAC,CAAC,OAAO,EAAE,CAAC;QACvD,CAAC;KAAA;IAEK,QAAQ,CAAC,KAAa;;YACxB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACvC,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;YAC9F,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAE,CAAC,SAAS,CAAC,8BAA8B,CAAC,EAAE;gBAClE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,8BAA8B;aACzD,CAAC,CAAC;YAEH,OAAO,IAAI,eAAM,CAAC,IAAI,CAAC,OAAO,EAAE,8BAA8B,CAAC,CAAC;QACpE,CAAC;KAAA;IAEK,qBAAqB;;YACvB,MAAM,OAAO,GAAG,sDAAsD,CAAC;YACvE,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAC3D,CAAC;KAAA;;AAnEa,cAAQ,GAAG,iBAAS,CAAC,KAAK,CAAC;AADhC,sBAAK"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class Gauge extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
6
|
+
getPathByStrokeLocator(color: string): string;
|
|
7
|
+
getPathByStroke(color: string): Promise<WebElement>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.Gauge = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const const_1 = require("./const");
|
|
15
|
+
class Gauge extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = const_1.SELECTORS.GAUGE, parentElement) {
|
|
17
|
+
super(browser, locator, parentElement);
|
|
18
|
+
this.parentElement = parentElement;
|
|
19
|
+
}
|
|
20
|
+
getPathByStrokeLocator(color) {
|
|
21
|
+
return `svg path[stroke="${color}"]`;
|
|
22
|
+
}
|
|
23
|
+
getPathByStroke(color) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const locator = this.getPathByStrokeLocator(color);
|
|
26
|
+
return yield this.findChild(locator);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.Gauge = Gauge;
|
|
31
|
+
//# sourceMappingURL=gauge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gauge.js","sourceRoot":"","sources":["../../src/components/gauge.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAAoC;AAGpC,MAAa,KAAM,SAAQ,0BAAW;IAClC,YAAY,OAAgB,EAAE,OAAO,GAAG,iBAAS,CAAC,KAAK,EAAY,aAAwC;QACvG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADwB,kBAAa,GAAb,aAAa,CAA2B;IAE3G,CAAC;IAEM,sBAAsB,CAAC,KAAa;QACvC,OAAO,oBAAoB,KAAK,IAAI,CAAC;IACzC,CAAC;IAEY,eAAe,CAAC,KAAa;;YACtC,MAAM,OAAO,GAAG,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;YACnD,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;KAAA;CACJ;AAbD,sBAaC"}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
2
|
+
import { Table } from "./table";
|
|
2
3
|
import { Pager } from "./pager";
|
|
3
|
-
|
|
4
|
-
import { SortType } from "./enums";
|
|
5
|
-
export declare class Grid extends UIComponent {
|
|
4
|
+
export declare class Grid extends Table {
|
|
6
5
|
protected parentElement?: WebElement | By | string;
|
|
7
6
|
static SELECTOR: string;
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
|
|
7
|
+
static LOADER: string;
|
|
8
|
+
static SORT_ASC_ICON: string;
|
|
9
|
+
static SORT_DESC_ICON: string;
|
|
10
|
+
static SORT_ORDER: string;
|
|
11
|
+
constructor(browser: Browser, locator?: By | string, parentElement?: WebElement | By | string);
|
|
11
12
|
pager(): Promise<Pager>;
|
|
12
|
-
addButton(): Promise<WebElement>;
|
|
13
|
-
saveChanges(): Promise<WebElement>;
|
|
14
|
-
headerByIndex(column: number): Promise<WebElement>;
|
|
15
|
-
headerByText(text: string, exactMatch?: boolean): Promise<WebElement>;
|
|
16
|
-
headerSortType(text: string, exactMatch?: boolean): Promise<SortType>;
|
|
17
|
-
tableRows(): Promise<WebElement[]>;
|
|
18
13
|
groupRows(): Promise<WebElement[]>;
|
|
14
|
+
groupRowsCount(): Promise<number>;
|
|
15
|
+
groupingHeader(): Promise<WebElement>;
|
|
16
|
+
groupHeaderByIndex(index: number): Promise<WebElement>;
|
|
17
|
+
groupByColumn(title: string): Promise<void>;
|
|
18
|
+
ungroupdByColumn(title: string): Promise<void>;
|
|
19
19
|
masterRows(): Promise<WebElement[]>;
|
|
20
|
+
masterRowsCount(): Promise<number>;
|
|
20
21
|
masterRow(index: number): Promise<WebElement>;
|
|
21
|
-
cell(row: number, column: number): Promise<WebElement>;
|
|
22
|
-
cellInput(row: number, column: number): Promise<WebElement>;
|
|
23
|
-
writeInCell(row: number, column: number, text: string, { clear, sendEnter }?: {
|
|
24
|
-
clear?: boolean;
|
|
25
|
-
sendEnter?: boolean;
|
|
26
|
-
}): Promise<void>;
|
|
27
22
|
focusedElement(): Promise<WebElement>;
|
|
23
|
+
loader(): Promise<WebElement>;
|
|
28
24
|
isEmpty(): Promise<boolean>;
|
|
29
25
|
}
|