示例#1
0
 /// <inheritdoc />
 public Task SetInputFilesAsync(string selector, FilePayload file, int?timeout = null, bool?noWaitAfter = null)
 => SetInputFilesAsync(selector, new[] { file }, timeout, noWaitAfter);
 /// <summary>
 /// Sets the value of the file input to these file paths or files. If some of the  <paramref name="file"/> are relative paths, then they are resolved relative to the <see cref="Directory.GetCurrentDirectory"/>.
 /// </summary>
 /// <param name="file">The file payload.</param>
 /// <param name="timeout">Maximum time to wait for in milliseconds. Defaults to `30000` (30 seconds).
 /// Pass `0` to disable timeout.
 /// The default value can be changed by using <seealso cref="IPage.DefaultTimeout"/> method.</param>
 /// <param name="noWaitAfter">Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.</param>
 /// <returns>A <see cref="Task"/> that completes when the files are successfully set.</returns>
 public Task SetFilesAsync(FilePayload file, int?timeout = null, bool?noWaitAfter = null)
 => Element.SetInputFilesAsync(file, timeout, noWaitAfter);
示例#3
0
 /// <inheritdoc />
 public Task SetInputFilesAsync(FilePayload file, int?timeout = null, bool?noWaitAfter = null)
 => SetInputFilesAsync(new[] { file }, timeout, noWaitAfter);