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

50 lines (49 loc) 2.43 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 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.calculate("2020, 9, 20", "dd.mm.yyyy"); * const end = await common.date.calculate("2021, 1, 3", "dd.mm.yyyy"); * const range = [start, end]; * await ui5.date.fillRange(selector, range); */ fillRange(selector: any, range: Date[], index?: number): Promise<void>; private _openDatePicker; private _selectDate; } declare const _default: DateModule; export default _default;