我试着上传一个带有文件的文件夹,但是,这是我上传文件夹的例子,这不起作用……请帮忙?
public async Task UploadFolderAsync(string folder)
{
var folderChooser = _page.RunAndWaitForFileChooserAsync(async () =>
{
await _page.ClickAsync("button span:has-text('Select folder')");
await
folderChooser.Result.SetFilesAsync(folder.Select(f=>$"../../../UploadFolders/{f}"));
await folderChooser.Result.Page.WaitForRequestFinishedAsync();
}
测试电脑软件文章源自玩技e族-https://www.playezu.com/190230.html 文章源自玩技e族-https://www.playezu.com/190230.html
评论