@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,7 @@
|
|
|
1
|
+
import { Browser, WebElement } from '../selenium';
|
|
2
|
+
import { UIComponent } from './ui-component';
|
|
3
|
+
export declare class ActionSheet extends UIComponent {
|
|
4
|
+
static SELECTOR: string;
|
|
5
|
+
constructor(browser: Browser, locator?: string, rootElement?: WebElement);
|
|
6
|
+
getItem(groupIndex: number, itemIndex: number): Promise<WebElement>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.ActionSheet = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const const_1 = require("./const");
|
|
15
|
+
class ActionSheet extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = const_1.SELECTORS.ACTIONSHEET, rootElement) {
|
|
17
|
+
super(browser, locator, rootElement);
|
|
18
|
+
}
|
|
19
|
+
getItem(groupIndex, itemIndex) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const locator = `.k-list-ul:nth-of-type(${groupIndex}) .k-actionsheet-item:nth-of-type(${itemIndex})`;
|
|
22
|
+
return yield this.findChild(locator);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
ActionSheet.SELECTOR = const_1.SELECTORS.ACTIONSHEET;
|
|
27
|
+
exports.ActionSheet = ActionSheet;
|
|
28
|
+
//# sourceMappingURL=actionsheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionsheet.js","sourceRoot":"","sources":["../../src/components/actionsheet.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAA6C;AAC7C,mCAAoC;AAEpC,MAAa,WAAY,SAAQ,0BAAW;IAGxC,YAAY,OAAgB,EAAE,OAAO,GAAG,iBAAS,CAAC,WAAW,EAAE,WAAwB;QACnF,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IACzC,CAAC;IAEY,OAAO,CAAC,UAAkB,EAAE,SAAiB;;YACtD,MAAM,OAAO,GAAG,0BAA0B,UAAU,qCAAqC,SAAS,GAAG,CAAC;YACtG,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACzC,CAAC;KAAA;;AATa,oBAAQ,GAAG,iBAAS,CAAC,WAAW,CAAC;AADtC,kCAAW"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppBar = void 0;
|
|
4
|
+
const ui_component_1 = require("./ui-component");
|
|
5
|
+
const const_1 = require("./const");
|
|
6
|
+
class AppBar extends ui_component_1.UIComponent {
|
|
7
|
+
constructor(browser, locator = const_1.SELECTORS.APPBAR, rootElement) {
|
|
8
|
+
super(browser, locator, rootElement);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
AppBar.SELECTOR = const_1.SELECTORS.APPBAR;
|
|
12
|
+
exports.AppBar = AppBar;
|
|
13
|
+
//# sourceMappingURL=appbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appbar.js","sourceRoot":"","sources":["../../src/components/appbar.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAC7C,mCAAoC;AAEpC,MAAa,MAAO,SAAQ,0BAAW;IAGnC,YAAY,OAAgB,EAAE,OAAO,GAAG,iBAAS,CAAC,MAAM,EAAE,WAAwB;QAC9E,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IACzC,CAAC;;AAJa,eAAQ,GAAG,iBAAS,CAAC,MAAM,CAAC;AADjC,wBAAM"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Browser, WebElement } from '../selenium';
|
|
2
|
+
import { Gauge } from './gauge';
|
|
3
|
+
export declare class ArcGauge extends Gauge {
|
|
4
|
+
constructor(browser: Browser, locator?: string, rootElement?: WebElement);
|
|
5
|
+
getLabelText(): Promise<string>;
|
|
6
|
+
getLabelColor(): Promise<string>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ArcGauge = void 0;
|
|
16
|
+
const const_1 = require("./const");
|
|
17
|
+
const gauge_1 = require("./gauge");
|
|
18
|
+
const rgb2hex_1 = __importDefault(require("rgb2hex"));
|
|
19
|
+
class ArcGauge extends gauge_1.Gauge {
|
|
20
|
+
constructor(browser, locator = const_1.SELECTORS.GAUGE, rootElement) {
|
|
21
|
+
super(browser, locator, rootElement);
|
|
22
|
+
}
|
|
23
|
+
getLabelText() {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
return yield (yield this.findChild('.k-arcgauge-label')).getText();
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
getLabelColor() {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const element = yield this.findChild('.k-arcgauge-label span');
|
|
31
|
+
const color = yield element.getCssValue('color');
|
|
32
|
+
return (0, rgb2hex_1.default)(color).hex;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ArcGauge = ArcGauge;
|
|
37
|
+
//# sourceMappingURL=arcgauge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcgauge.js","sourceRoot":"","sources":["../../src/components/arcgauge.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mCAAoC;AACpC,mCAAgC;AAChC,sDAA8B;AAE9B,MAAa,QAAS,SAAQ,aAAK;IAC/B,YAAY,OAAgB,EAAE,OAAO,GAAG,iBAAS,CAAC,KAAK,EAAE,WAAwB;QAC7E,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IACzC,CAAC;IAEY,YAAY;;YACrB,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACvE,CAAC;KAAA;IAEY,aAAa;;YACtB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;YAC/D,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YACjD,OAAO,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAC9B,CAAC;KAAA;CACJ;AAdD,4BAcC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Browser, WebElement } from
|
|
1
|
+
import { Browser, WebElement } from '../selenium';
|
|
2
2
|
import { DropDown } from "./dropdown";
|
|
3
|
-
export
|
|
3
|
+
export declare class AutoComplete extends DropDown {
|
|
4
|
+
static SELECTOR: string;
|
|
4
5
|
constructor(browser: Browser, locator?: string, rootElement?: WebElement);
|
|
5
|
-
type(text: string, clear?:
|
|
6
|
+
type(text: string, { clear }?: {
|
|
7
|
+
clear?: boolean;
|
|
8
|
+
}): Promise<void>;
|
|
6
9
|
clearValue(): Promise<void>;
|
|
7
10
|
getValue(): Promise<string>;
|
|
8
11
|
isFocused(): Promise<boolean>;
|
|
@@ -9,22 +9,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AutoComplete = void 0;
|
|
12
13
|
const selenium_1 = require("../selenium");
|
|
13
|
-
const browser_1 = require("../selenium/browser");
|
|
14
14
|
const const_1 = require("./const");
|
|
15
15
|
const dropdown_1 = require("./dropdown");
|
|
16
16
|
class AutoComplete extends dropdown_1.DropDown {
|
|
17
|
-
constructor(browser, locator =
|
|
17
|
+
constructor(browser, locator = AutoComplete.SELECTOR, rootElement) {
|
|
18
18
|
super(browser, locator, rootElement);
|
|
19
19
|
}
|
|
20
|
-
type(text, clear = true) {
|
|
20
|
+
type(text, { clear = true } = {}) {
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
22
|
yield (yield this.input()).click();
|
|
23
23
|
const focused = selenium_1.EC.hasFocus(yield this.findChild("input"));
|
|
24
24
|
yield this.browser.wait(focused, { timeout: 3000, message: "Failed to focus input element!" });
|
|
25
25
|
if (clear && (yield this.getValue()) !== "") {
|
|
26
26
|
yield this.browser.sendControlKeyCombination("a");
|
|
27
|
-
yield this.browser.sendKey(
|
|
27
|
+
yield this.browser.sendKey(selenium_1.Key.BACK_SPACE);
|
|
28
28
|
}
|
|
29
29
|
yield this.browser.sendKey(text);
|
|
30
30
|
});
|
|
@@ -52,5 +52,6 @@ class AutoComplete extends dropdown_1.DropDown {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
AutoComplete.SELECTOR = const_1.SELECTORS.AUTOCOMPLETE;
|
|
56
|
+
exports.AutoComplete = AutoComplete;
|
|
56
57
|
//# sourceMappingURL=autocomplete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../src/components/autocomplete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../src/components/autocomplete.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA2D;AAC3D,mCAA4C;AAC5C,yCAAsC;AAEtC,MAAa,YAAa,SAAQ,mBAAQ;IAGtC,YAAY,OAAgB,EAAE,OAAO,GAAG,YAAY,CAAC,QAAQ,EAAE,WAAwB;QACnF,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IACzC,CAAC;IAEK,IAAI,CAAC,IAAY,EAAE,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE;;YAC1C,MAAM,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;YAEnC,MAAM,OAAO,GAAG,aAAE,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3D,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC,CAAC;YAE/F,IAAI,KAAK,IAAI,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;gBACzC,MAAM,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;gBAClD,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAG,CAAC,UAAU,CAAC,CAAC;aAC9C;YAED,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC;KAAA;IAEK,UAAU;;YACZ,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM;iBACpB,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;iBACtC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;iBACnC,OAAO,EAAE,CAAC;YAEf,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YACvC,MAAM,WAAW,CAAC,KAAK,EAAE,CAAC;QAC9B,CAAC;KAAA;IAEK,QAAQ;;YACV,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5D,CAAC;KAAA;IAEK,SAAS;;YACX,MAAM,iBAAiB,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,cAAM,CAAC,OAAO,CAAC,CAAC;YACrG,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;YACpE,OAAO,iBAAiB,IAAI,iBAAiB,CAAC;QAClD,CAAC;KAAA;;AAtCa,qBAAQ,GAAG,iBAAS,CAAC,YAAY,CAAC;AADvC,oCAAY"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class BottomNavigation extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
getItemByText(text: string): Promise<WebElement>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.BottomNavigation = void 0;
|
|
13
|
+
const const_1 = require("./const");
|
|
14
|
+
const ui_component_1 = require("./ui-component");
|
|
15
|
+
const selenium_1 = require("../selenium");
|
|
16
|
+
class BottomNavigation extends ui_component_1.UIComponent {
|
|
17
|
+
constructor(browser, locator = BottomNavigation.SELECTOR, parentElement) {
|
|
18
|
+
super(browser, locator, parentElement);
|
|
19
|
+
this.parentElement = parentElement;
|
|
20
|
+
}
|
|
21
|
+
getItemByText(text) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const locator = `.//span[contains(@class,"k-bottom-nav-item") and @role="link" and .="${text}"]`;
|
|
24
|
+
return yield this.findChild(selenium_1.By.xpath(locator));
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
BottomNavigation.SELECTOR = const_1.SELECTORS.BOTTOM_NAVIGATION;
|
|
29
|
+
exports.BottomNavigation = BottomNavigation;
|
|
30
|
+
//# sourceMappingURL=bottomnavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottomnavigation.js","sourceRoot":"","sources":["../../src/components/bottomnavigation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AACpC,iDAA6C;AAC7C,0CAAsD;AAEtD,MAAa,gBAAiB,SAAQ,0BAAW;IAG7C,YAAY,OAAgB,EAAE,OAAO,GAAG,gBAAgB,CAAC,QAAQ,EAAY,aAAwC;QACjH,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADkC,kBAAa,GAAb,aAAa,CAA2B;IAErH,CAAC;IAEK,aAAa,CAAC,IAAY;;YAC5B,MAAM,OAAO,GAAG,wEAAwE,IAAI,IAAI,CAAC;YACjG,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,aAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,CAAC;KAAA;;AATa,yBAAQ,GAAG,iBAAS,CAAC,iBAAiB,CAAC;AAD5C,4CAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class Breadcrumb extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
getRootItem(): Promise<WebElement>;
|
|
8
|
+
getRootItemLink(): Promise<WebElement>;
|
|
9
|
+
getItemByText(text: string): Promise<WebElement>;
|
|
10
|
+
getItemLinkByText(text: string): Promise<WebElement>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.Breadcrumb = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const selenium_1 = require("../selenium");
|
|
15
|
+
const const_1 = require("./const");
|
|
16
|
+
class Breadcrumb extends ui_component_1.UIComponent {
|
|
17
|
+
constructor(browser, locator = Breadcrumb.SELECTOR, parentElement) {
|
|
18
|
+
super(browser, locator, parentElement);
|
|
19
|
+
this.parentElement = parentElement;
|
|
20
|
+
}
|
|
21
|
+
getRootItem() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return yield this.findChild("li.k-breadcrumb-root-item");
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
getRootItemLink() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield this.findChild("li.k-breadcrumb-root-item a");
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
getItemByText(text) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const locator = `.//li[contains(@class,'k-breadcrumb-item') and .='${text}']`;
|
|
34
|
+
return yield this.findChild(selenium_1.By.xpath(locator));
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
getItemLinkByText(text) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const locator = `.//li[contains(@class,'k-breadcrumb-item') and .='${text}']//a`;
|
|
40
|
+
return yield this.findChild(selenium_1.By.xpath(locator));
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
Breadcrumb.SELECTOR = const_1.SELECTORS.BREADCRUMB;
|
|
45
|
+
exports.Breadcrumb = Breadcrumb;
|
|
46
|
+
//# sourceMappingURL=breadcrumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.js","sourceRoot":"","sources":["../../src/components/breadcrumb.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,0CAAsD;AACtD,mCAAoC;AAEpC,MAAa,UAAW,SAAQ,0BAAW;IAGvC,YAAY,OAAgB,EAAE,OAAO,GAAG,UAAU,CAAC,QAAQ,EAAY,aAAwC;QAC3G,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QAD4B,kBAAa,GAAb,aAAa,CAA2B;IAE/G,CAAC;IAEK,WAAW;;YACb,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;QAC7D,CAAC;KAAA;IAEK,eAAe;;YACjB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QAC/D,CAAC;KAAA;IAEK,aAAa,CAAC,IAAY;;YAC5B,MAAM,OAAO,GAAG,qDAAqD,IAAI,IAAI,CAAC;YAC9E,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,aAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,CAAC;KAAA;IAEK,iBAAiB,CAAC,IAAY;;YAChC,MAAM,OAAO,GAAG,qDAAqD,IAAI,OAAO,CAAC;YACjF,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,aAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,CAAC;KAAA;;AAtBa,mBAAQ,GAAG,iBAAS,CAAC,UAAU,CAAC;AADrC,gCAAU"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class Calendar extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
getTitle(): Promise<string>;
|
|
8
|
+
title(): Promise<WebElement>;
|
|
9
|
+
fastNavigation(): Promise<WebElement>;
|
|
10
|
+
focusedDate(): Promise<WebElement>;
|
|
11
|
+
selectedDate(): Promise<WebElement>;
|
|
12
|
+
selectedDates(): Promise<WebElement[]>;
|
|
13
|
+
selectedDateByIndex(index: number): Promise<WebElement>;
|
|
14
|
+
midRangeDates(): Promise<WebElement[]>;
|
|
15
|
+
midRangeDateByIndex(index: number): Promise<WebElement>;
|
|
16
|
+
selectedDateText(): Promise<string>;
|
|
17
|
+
todayDateButton(): Promise<WebElement>;
|
|
18
|
+
nextButton(): Promise<WebElement>;
|
|
19
|
+
previousButton(): Promise<WebElement>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.Calendar = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const const_1 = require("./const");
|
|
15
|
+
class Calendar extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = Calendar.SELECTOR, parentElement) {
|
|
17
|
+
super(browser, locator, parentElement);
|
|
18
|
+
this.parentElement = parentElement;
|
|
19
|
+
}
|
|
20
|
+
getTitle() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const title = yield this.findChild('.k-calendar-title');
|
|
23
|
+
return yield title.getText();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
title() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield this.findChild('.k-calendar-title');
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
fastNavigation() {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return yield this.findChild('.k-calendar-nav-fast');
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
focusedDate() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return yield this.findChild(".k-focus span.k-link");
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
selectedDate() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return yield this.findChild(".k-selected span.k-link");
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
selectedDates() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return yield this.findChildren(".k-selected span.k-link");
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
selectedDateByIndex(index) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return (yield this.selectedDates())[index];
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
midRangeDates() {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return yield this.findChildren(".k-range-mid span.k-link");
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
midRangeDateByIndex(index) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
return (yield this.midRangeDates())[index];
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
selectedDateText() {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return yield (yield this.selectedDate()).getText();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
todayDateButton() {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
return yield this.findChild(".k-calendar-nav-today");
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
nextButton() {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
return yield this.findChild(".k-calendar-nav-next");
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
previousButton() {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
return yield this.findChild(".k-calendar-nav-prev");
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
Calendar.SELECTOR = const_1.SELECTORS.CALENDAR;
|
|
88
|
+
exports.Calendar = Calendar;
|
|
89
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../src/components/calendar.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAE7C,mCAAoC;AAEpC,MAAa,QAAS,SAAQ,0BAAW;IAGrC,YAAY,OAAgB,EAAE,OAAO,GAAG,QAAQ,CAAC,QAAQ,EAAY,aAAwC;QACzG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QAD0B,kBAAa,GAAb,aAAa,CAA2B;IAE7G,CAAC;IAEK,QAAQ;;YACV,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;YACxD,OAAO,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACjC,CAAC;KAAA;IAEK,KAAK;;YACP,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACrD,CAAC;KAAA;IAEK,cAAc;;YAChB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QACxD,CAAC;KAAA;IAEK,WAAW;;YACb,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QACxD,CAAC;KAAA;IAEK,YAAY;;YACd,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAC3D,CAAC;KAAA;IAEK,aAAa;;YACf,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,yBAAyB,CAAC,CAAC;QAC9D,CAAC;KAAA;IAEK,mBAAmB,CAAC,KAAa;;YACnC,OAAO,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;KAAA;IAEK,aAAa;;YACf,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,0BAA0B,CAAC,CAAC;QAC/D,CAAC;KAAA;IAEK,mBAAmB,CAAC,KAAa;;YACnC,OAAO,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;KAAA;IAEK,gBAAgB;;YAClB,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;QACvD,CAAC;KAAA;IAEK,eAAe;;YACjB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QACzD,CAAC;KAAA;IAEK,UAAU;;YACZ,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QACxD,CAAC;KAAA;IAEK,cAAc;;YAChB,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QACxD,CAAC;KAAA;;AAzDa,iBAAQ,GAAG,iBAAS,CAAC,QAAQ,CAAC;AADnC,4BAAQ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class Captcha extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
input(): Promise<WebElement>;
|
|
8
|
+
setValue(value: string): Promise<void>;
|
|
9
|
+
successMessage(): Promise<WebElement>;
|
|
10
|
+
errorMessage(): Promise<WebElement>;
|
|
11
|
+
refresh(): Promise<void>;
|
|
12
|
+
speak(): Promise<void>;
|
|
13
|
+
slider(): Promise<WebElement>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.Captcha = void 0;
|
|
13
|
+
const ui_component_1 = require("./ui-component");
|
|
14
|
+
const selenium_1 = require("../selenium");
|
|
15
|
+
class Captcha extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = Captcha.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");
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
setValue(value) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
yield (yield this.input()).click();
|
|
28
|
+
yield this.browser.sendKey(selenium_1.Key.HOME);
|
|
29
|
+
yield this.browser.sendKey(value);
|
|
30
|
+
yield this.browser.sendKey(selenium_1.Key.TAB);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
successMessage() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const parent = yield (yield this.root()).findElement(selenium_1.By.xpath('./..'));
|
|
36
|
+
return yield this.browser.findChild(parent, ".k-captcha-validation-message.k-text-success");
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
errorMessage() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const parent = yield (yield this.root()).findElement(selenium_1.By.xpath('./..'));
|
|
42
|
+
return yield this.browser.findChild(parent, ".k-form-error.k-invalid-msg");
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
refresh() {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const refreshButton = yield this.findChild('[title="Reset captcha"]');
|
|
48
|
+
yield refreshButton.click();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
speak() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const speakButton = yield this.findChild('[title="Speak captcha"]');
|
|
54
|
+
yield speakButton.click();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
slider() {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return this.findChild(".k-slider-selection");
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
Captcha.SELECTOR = '.k-captcha';
|
|
64
|
+
exports.Captcha = Captcha;
|
|
65
|
+
//# sourceMappingURL=captcha.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captcha.js","sourceRoot":"","sources":["../../src/components/captcha.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA6C;AAC7C,0CAA2D;AAE3D,MAAa,OAAQ,SAAQ,0BAAW;IAGpC,YAAY,OAAgB,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,EAAY,aAAwC;QACxG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADyB,kBAAa,GAAb,aAAa,CAA2B;IAE5G,CAAC;IAEK,KAAK;;YACP,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC5C,CAAC;KAAA;IAEK,QAAQ,CAAC,KAAa;;YACxB,MAAM,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;YACnC,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAG,CAAC,IAAI,CAAC,CAAC;YACrC,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAClC,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAG,CAAC,GAAG,CAAC,CAAC;QACxC,CAAC;KAAA;IAEK,cAAc;;YAChB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,aAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;YACvE,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,8CAA8C,CAAC,CAAC;QAChG,CAAC;KAAA;IAEK,YAAY;;YACd,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,aAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;YACvE,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;QAC/E,CAAC;KAAA;IAEK,OAAO;;YACT,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;YACtE,MAAM,aAAa,CAAC,KAAK,EAAE,CAAC;QAChC,CAAC;KAAA;IAEK,KAAK;;YACP,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;YACpE,MAAM,WAAW,CAAC,KAAK,EAAE,CAAC;QAC9B,CAAC;KAAA;IAEK,MAAM;;YACR,OAAO,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;QACjD,CAAC;KAAA;;AAvCa,gBAAQ,GAAG,YAAY,CAAC;AAD7B,0BAAO"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class Chat extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
sendButton(): Promise<WebElement>;
|
|
8
|
+
messageInput(): Promise<WebElement>;
|
|
9
|
+
lastMessage(): Promise<WebElement>;
|
|
10
|
+
message(index: number): Promise<WebElement>;
|
|
11
|
+
quickReply(index: number): Promise<WebElement>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.Chat = void 0;
|
|
13
|
+
const const_1 = require("./const");
|
|
14
|
+
const ui_component_1 = require("./ui-component");
|
|
15
|
+
class Chat extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = Chat.SELECTOR, parentElement) {
|
|
17
|
+
super(browser, locator, parentElement);
|
|
18
|
+
this.parentElement = parentElement;
|
|
19
|
+
}
|
|
20
|
+
sendButton() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return yield this.findChild(".k-chat-send");
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
messageInput() {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return yield this.findChild(".k-input input");
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
lastMessage() {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return yield this.findChild("div.k-last > .k-chat-bubble");
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
message(index) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const locator = ".k-message > .k-chat-bubble";
|
|
38
|
+
yield this.browser.wait(() => __awaiter(this, void 0, void 0, function* () { return (yield this.findChildren(locator)).length > index; }), {
|
|
39
|
+
timeout: 10000,
|
|
40
|
+
message: `Failed to find message with index ${index}.`,
|
|
41
|
+
});
|
|
42
|
+
return (yield this.findChildren(locator))[index];
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
quickReply(index) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const locator = ".k-quick-reply";
|
|
48
|
+
yield this.browser.wait(() => __awaiter(this, void 0, void 0, function* () { return (yield this.findChildren(locator)).length > index; }), {
|
|
49
|
+
timeout: 10000,
|
|
50
|
+
message: `Failed to find quick message with index ${index}.`,
|
|
51
|
+
});
|
|
52
|
+
return (yield this.findChildren(locator))[index];
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
Chat.SELECTOR = const_1.SELECTORS.CHAT;
|
|
57
|
+
exports.Chat = Chat;
|
|
58
|
+
//# sourceMappingURL=chat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/components/chat.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AACpC,iDAA6C;AAG7C,MAAa,IAAK,SAAQ,0BAAW;IAGjC,YAAY,OAAgB,EAAE,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAY,aAAwC;QACrG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QADsB,kBAAa,GAAb,aAAa,CAA2B;IAEzG,CAAC;IAEK,UAAU;;YACZ,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAChD,CAAC;KAAA;IAEK,YAAY;;YACd,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QAClD,CAAC;KAAA;IAEK,WAAW;;YACb,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QAC/D,CAAC;KAAA;IAEK,OAAO,CAAC,KAAa;;YACvB,MAAM,OAAO,GAAG,6BAA6B,CAAC;YAC9C,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAS,EAAE,gDAAC,OAAA,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,GAAG,KAAK,CAAA,GAAA,EAAE;gBACnF,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,qCAAqC,KAAK,GAAG;aACzD,CAAC,CAAC;YACH,OAAO,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACrD,CAAC;KAAA;IAEK,UAAU,CAAC,KAAa;;YAC1B,MAAM,OAAO,GAAG,gBAAgB,CAAC;YACjC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAS,EAAE,gDAAC,OAAA,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,GAAG,KAAK,CAAA,GAAA,EAAE;gBACnF,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,2CAA2C,KAAK,GAAG;aAC/D,CAAC,CAAC;YACH,OAAO,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACrD,CAAC;KAAA;;AAlCa,aAAQ,GAAG,iBAAS,CAAC,IAAI,CAAC;AAD/B,oBAAI"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UIComponent } from "./ui-component";
|
|
2
|
+
import { Browser, By, WebElement } from "../selenium";
|
|
3
|
+
export declare class Checkbox extends UIComponent {
|
|
4
|
+
protected parentElement?: WebElement | By | string;
|
|
5
|
+
static SELECTOR: string;
|
|
6
|
+
constructor(browser: Browser, locator?: string, parentElement?: WebElement | By | string);
|
|
7
|
+
checked(): Promise<boolean>;
|
|
8
|
+
isEnabled(): Promise<boolean>;
|
|
9
|
+
click(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.Checkbox = void 0;
|
|
13
|
+
const const_1 = require("./const");
|
|
14
|
+
const ui_component_1 = require("./ui-component");
|
|
15
|
+
class Checkbox extends ui_component_1.UIComponent {
|
|
16
|
+
constructor(browser, locator = Checkbox.SELECTOR, parentElement) {
|
|
17
|
+
super(browser, locator, parentElement);
|
|
18
|
+
this.parentElement = parentElement;
|
|
19
|
+
}
|
|
20
|
+
checked() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const attr = yield this.root();
|
|
23
|
+
return (yield attr.getAttribute("checked")) === "true";
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
isEnabled() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield (yield this.root()).isEnabled();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
click() {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
yield (yield this.root()).click();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
Checkbox.SELECTOR = const_1.SELECTORS.CHECKBOX;
|
|
38
|
+
exports.Checkbox = Checkbox;
|
|
39
|
+
//# sourceMappingURL=checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/components/checkbox.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AACpC,iDAA6C;AAG7C,MAAa,QAAS,SAAQ,0BAAW;IAGrC,YAAY,OAAgB,EAAE,OAAO,GAAG,QAAQ,CAAC,QAAQ,EAAY,aAAwC;QACzG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QAD0B,kBAAa,GAAb,aAAa,CAA2B;IAE7G,CAAC;IAEK,OAAO;;YACT,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YAC/B,OAAO,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,KAAK,MAAM,CAAC;QAC3D,CAAC;KAAA;IAEK,SAAS;;YACX,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;QACjD,CAAC;KAAA;IAEK,KAAK;;YACP,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;QACtC,CAAC;KAAA;;AAjBa,iBAAQ,GAAG,iBAAS,CAAC,QAAQ,CAAC;AADnC,4BAAQ"}
|