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

Inherited from Input.

Supports [Format] and [RandomizeStringSettings] settings attributes.

Syntax

[ControlDefinition("input[@type='tel']", ComponentTypeName = "telephone input")]
public class TelInput<TOwner> : Input<string, TOwner>
    where TOwner : PageObject<TOwner>

Example

<input type="tel" id="phone">
using Atata;

namespace SampleApp.UITests
{
    using _ = SamplePage;

    public class SamplePage : Page<_>
    {
        [FindById]
        public TelInput<_> Phone { get; private set; }
    }
}
Go.To<SamplePage>().
    Phone.Set("+1234567890");