Represents the file input control (<input type="file">). Default search is performed by the label.

Inherited from Input.

Supports [Format] settings attribute.

Syntax

[ControlDefinition("input[@type='file']")]
public class FileInput<TOwner> : Input<string, TOwner>
    where TOwner : PageObject<TOwner>

Example

<input type="file" id="some-file">
using Atata;

namespace SampleApp
{
    using _ = SamplePage;

    public class SamplePage : Page<_>
    {
        [FindById]
        public FileInput<_> SomeFile { get; private set; }
    }
}
Go.To<SamplePage>().
    SomeFile.Set(@"d:\some\file\path.txt");