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

11 lines (8 loc) 364 B
import {When} from "@cucumber/cucumber"; import pressButton from "../helpers/framework-helpers/action/pressButton"; // Possible keystrokes; Use the normalised keys from // https://w3c.github.io/webdriver/#keyboard-actions When(/^I press "([^"]*)?" key$/, async (key: string | string[]) => { console.log(`I press ${key} key`); await pressButton(key); });