Represents the time input control. Default search is performed by the label. Handles any input element with type="time", type="text" or without the defined type attribute.

Inherited from Input.

Supports [Format] and [Culture] settings attributes.

Syntax

[ControlDefinition("input[@type='text' or @type='time' or not(@type)]")]
public class TimeInput<TOwner> : Input<TimeSpan?, TOwner>
    where TOwner : PageObject<TOwner>

Example

<input type="time" id="eventTime">
using Atata;

namespace SampleApp.UITests
{
    using _ = SamplePage;

    public class SamplePage : Page<_>
    {
        [FindById(TermCase.Camel)]
        public TimeInput<_> EventTime { get; private set; }
    }
}
TimeSpan time = TimeSpan.FromHours(11.5);

Go.To<SamplePage>().
    EventTime.Should.BeNull().
    EventTime.Set(time).
    EventTime.Should.Equal(time);