Beispiel #1
0
 public void NvdaShouldConnectAndGetSystemDate()
 {
     using (var driver = new NvdaDriver(opt =>
     {
         opt.GeneralSettings.Language = NvdaLanguage.English;
     }))
     {
         driver.ConnectAsync().Wait();
         string text = driver.SendCommandAndGetSpokenTextAsync(NvdaTestingDriver.Commands.NvdaCommands.ReportingSystemInformationCommands.ReportDate).Result;
         Assert.IsFalse(String.IsNullOrEmpty(text));
     }
 }
Beispiel #2
0
 private static async Task ConnectNvdaDriverAsync()
 {
     try
     {
         NvdaDriver = new NvdaDriver(opt =>
         {
             opt.GeneralSettings.Language = NvdaTestingDriver.Settings.NvdaLanguage.English;
         });
         await NvdaDriver.ConnectAsync();
     }
     catch (Exception ex)
     {
         Console.WriteLine($"Error while starting NVDA driver: {ex.Message}");
         throw ex;
     }
 }