UNPKG

tlc-core-automation-framework-v3-wdio-v9

Version:

Background: - We are following multi-layer automation framework architecture using webdriver.io + cucumber + typescript This core framework has been implemented with generic utility functions and cucumber steps, which can be easily consumed by another fra

13 lines (12 loc) 764 B
import { PageConfigTypes } from "../../../custom-types/pageConfig-types"; /** * Check if element by index exists. * The function should be used if we are expecting to find multi element occurrence * Element index in Array starts from [0], but the end user on UI will see 1st, 2nd, 3rd, 4th... element * @param {number} elementPosition Passed to the function should be >= 1 * index - will be calculated and adjusted accordingly * @param {String} pageObject Element selector * @param {boolean} falseCase Whether to check if element by Index should exist or not */ declare const _default: (elementPosition: number, pageConfig: PageConfigTypes, falseCase: boolean) => Promise<void>; export default _default;