Я пытаюсь ввести текст в поле редактирования в модальном окне. Я получаю сообщение об ошибке "Не удалось получить (ControlType = edit или ControlType = document), AutomationId = 1118, ClassName = Edit"
Ниже приведен мой код.
var window = app.GetWindow("Toolkit Version");
Window AuthWindow = null;
AuthWindow = window.ModalWindow("Please Authenticate");
TextBox userNameField = AuthWindow.Get<TextBox>(SearchCriteria.ByClassName("Edit").AndAutomationId("1118"));
userNameField.Text = "Administrator";
Из проверки
![image](https://user-images.githubusercontent.com/5941859/39474418-eac17288-4d21-11e8-9111-9d1c35d276af.png)
Сведения об ошибке -
TestStack.White.AutomationException: 'Failed to get (ControlType=edit or ControlType=document),AutomationId=1118,ClassName=Edit'
Есть предложения или обходные пути?
Спасибо!