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

12 lines (9 loc) 375 B
import {PageConfigTypes} from "../../../custom-types/pageConfig-types"; import {browser, $, $$, expect} from '@wdio/globals' /** * Performs Mouse Hover onto specified Element Selector by Index **/ export default async (elementPosition: number, pageConfig: PageConfigTypes) => { const index = elementPosition - 1; await $$(pageConfig.selector)[index].moveTo(); };