Adding the setValue() method wrapper
We begin by adding a new wrapper to our helpers
file that we will extend with several checks, before performing the intrinsic setValue()
method:
export async function setValueAdv( inputField: ChainablePromiseElement<WebdriverIO.Element>, text: string) { //Custom setValue wrapper code here await element.setValue(newValue); }
Now, we are ready to begin to enhance the data population aspect of our framework.