You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see my folder structure above. I have a share.csv file in fixtures folder and want to upload share.csv file in my channels.config.ts (By clicking Upload file button). You can see the web directory of the Upload File button below
->fixtures(folder)
-share.csv(file)
->playwrgiht(folder)
-test(folder)
--channels.config.ts(file)
--login.config.ts(file)
You can see my folder structure above. I have a share.csv file in fixtures folder and want to upload share.csv file in my channels.config.ts (By clicking Upload file button). You can see the web directory of the Upload File button below
<button type="button" class="ant-btn secondary-btn width-full text-left"><span class="fa fa-upload"></span><span>Upload File</span></button>
In my channels.config.ts I tried below code but got error.
await page.getByText('Upload File').setInputFiles('../../fixtures/share.csv');
Also tried using xpath instead of using getByText text but took error again. You can see error below;
The text was updated successfully, but these errors were encountered: