How do you interact with a file input element in WebdriverIO?
Hi Dipen,
You can use the chooseFile() function provided by the browser object to interact with a file input element in WebdriverIO.
As an example, you can use the following code to select a file to upload:
const input = await browser.$('#my-input');
await input.chooseFile('/path/to/file');