Exemple #1
0
 public void ConfimEndOfDripping() // добавлять ШК пользователя пока есть поле "Личный ШК пользователя"
 {
     while (ConfirmManualDrippingField.Exists())
     {
         try { ConfirmManualDrippingField.SendKeys(Config.UserBarCode).SendKeys(Keys.Enter); }
         catch (System.Exception e) { break; }
     }
 }
Exemple #2
0
 public void AddClipboardCopyOfBatches()
 {
     if (ListOfBatches != null)
     {
         foreach (ElementScope i in ListOfBatches)
         {
             var s = FirstBatch["clipboard-copy"];
             System.Diagnostics.Debug.WriteLine(s);
             ConfirmBatchOrSample.SendKeys(s).SendKeys(Keys.Enter);
             System.Threading.Thread.Sleep(500);
             BDReagentsWorkplacePage bDReagentsWorkplacePage = new BDReagentsWorkplacePage();
             bDReagentsWorkplacePage.SetUsercode();
             while (ConfirmManualDrippingField.Exists())
             {
                 try { ConfirmManualDrippingField.SendKeys(Config.UserBarCode).SendKeys(Keys.Enter); }
                 catch (System.Exception e) { break; }
             }
         }
     }
 }