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
15 lines (14 loc) • 797 B
TypeScript
import { PageConfigTypes } from "../../../custom-types/pageConfig-types";
/**
* Check if the given elements text is the same as the given text
* @param elementType button | element | field
* @param pageConfig
* @param {String} falseCase Whether to check if the content equals the
* given text or not
* @param {String} expectedText The text to validate against
*
* Therefore you can use getText on DOM-elements such as a <div> or a <p> or <a>. However,
* if it is an <input> field or <textarea>, <select> then you would need to use the getValue command.
* @param ignoreCaseCheck
*/
export default function (elementType: string, pageConfig: PageConfigTypes, falseCase: boolean, expectedText: string, ignoreCaseCheck?: boolean): Promise<void>;