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

Inherited from Input.

Supports [Format] and [RandomizeStringSettings] settings attributes.

Syntax

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

Example

<input type="search" id="search-query">
using Atata;

namespace SampleApp
{
    using _ = SamplePage;

    public class SamplePage : Page<_>
    {
        [FindById]
        public SearchInput<_> SearchQuery { get; private set; }
    }
}
Go.To<SamplePage>().
    SearchQuery.Set("some text");