KeyboardService

Learn how to use BELLATRIX iOS KeyboardService.

Example

[TestFixture]
[IOS(Constants.IOSNativeAppPath,
    Constants.IOSDefaultVersion,
    Constants.IOSDefaultDeviceName,
    Lifecycle.RestartEveryTime)]
public class KeyboardServiceTests : IOSTest
{
    [Test]
    public void TestHideKeyBoard()
    {
        var textField = App.Components.CreateById<TextField>("IntegerA");
        textField.SetText(string.Empty);

        App.Keyboard.HideKeyboard();
    }
}

Explanations

BELLATRIX gives you an interface for easier work with device’s keyboard through KeyboardService class.

App.Keyboard.HideKeyboard();

Hides the keyboard.