public void EditorEnterText() { var screenRecorder = ScreenRecorder.CreateRecorder(@"D:\Improvement\PrepareForTestReportTeacher\NotepadTest\TestResults\screenRecorder.mp4"); _logger.Info("start"); screenRecorder.StartRecording(screenRecorder, 2); // Type mixed text and apply shift modifier to 7890_ to generate corresponding symbols Thread.Sleep(TimeSpan.FromSeconds(2)); editBox.SendKeys("abcdeABCDE 12345" + Keys.Shift + "7890-" + Keys.Shift + @"!@#$%"); WinDriverUtil.ShotScreen(WinDriverUtil.DesktopSession, @"D:\Improvement\PrepareForTestReportTeacher\NotepadTest\TestResults\screen.png"); Assert.AreEqual(@"abcdeABCDE 12345&*()_!@#$%", editBox.Text); _logger.Info("end recordering"); screenRecorder.EndRecording(); _logger.Info("end test"); }