UNPKG

@sap_oss/wdio-qmate-service

Version:

[![REUSE status](https://api.reuse.software/badge/github.com/SAP/wdio-qmate-service)](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[![Node.js CI](https://github.com/SAP/wdio-qmate-service/actions/workflows/node.js.yml/badge.svg)](http

68 lines (67 loc) 3.27 kB
/** * @class date * @memberof ui5 */ export declare class DateModule { private vlf; /** * @function pick * @memberOf ui5.date * @description Picks the passed date using the "DatePicker" with the given selector. * @param {Selector} selector - The selector describing the element. * @param {Date} date - The date object. * @param {Number} [index=0] - The index of the selector (in case there are more than one elements visible at the same time). * @example const today = await common.date.calculate("today"); * await ui5.date.pick(selector, today); */ pick(selector: any, date: Date, index?: number): Promise<void>; /** * @function pickRange * @memberOf ui5.date * @description Picks the passed date range using the "DatePicker" with the given selector. * Note that this will only work within the current month! * @param {Selector} selector - The selector describing the element. * @param {Object[]} range - The array of date objects containing start- and end date. * @param {Number} [index=0] - The index of the selector (in case there are more than one elements visible at the same time). * @example const start = await common.date.calculate("2020, 9, 20"); * const end = await common.date.calculate("2021, 1, 3"); * const range = [start, end]; * await ui5.date.pickRange(selector, range); */ pickRange(selector: any, range: Date[], index?: number): Promise<void>; /** * @function pickWithTime * @memberOf ui5.date * @description Picks the passed date with time using the "DateTimePicker" with the given selector. * @param {Selector} selector - The selector describing the element. * @param {Date} date - The date object. * @param {Number} [index=0] - The index of the selector (in case there are more than one elements visible at the same time). * @example const tomorrowMorning = await common.date.calculateWithTime("tomorrow", "09:30:45"); * await ui5.date.pickWithTime(selector, tomorrowMorning); */ pickWithTime(selector: any, date: Date, index?: number): Promise<void>; /** * @function fillRange * @memberOf ui5.date * @description Enters the passed date range to the date input with the given selector by providing the start- and end date. * @param {Selector} selector - The selector describing the element. * @param {Object[]} range - The array of date objects containing start- and end date. * @param {Number} [index=0] - The index of the selector (in case there are more than one elements visible at the same time). * @example const start = await common.date.getSpecific("2025, 9, 20"); * const end = await common.date.getSpecific("2025, 10, 30"); * const range = [start, end]; * await ui5.date.fillRange(selector, range); */ fillRange(selector: any, range: Date[], index?: number): Promise<void>; private _constructDatePickerSelector; private _openDatePicker; private _selectDate; private _selectTime; private _clickOk; private _selectAmPm; private _selectHours; private _selectMinutes; private _selectSeconds; } declare const _default: DateModule; export default _default;