Example #1
0
        public ElementScope FirstTube => Scope.FindXPath("(//tr[@class='ng-scope' and contains(@ng-repeat,'tube in')])[1]");                                                 // первая проба в списке

        public void AddClipboardCopyOfTubes()
        {
            if (ListOfTubes != null)
            {
                foreach (ElementScope i in ListOfTubes)
                {
                    var s = FirstTube["clipboard-copy"];
                    System.Diagnostics.Debug.WriteLine(s);
                    ConfirmBatchOrSample.SendKeys(s).SendKeys(Keys.Enter);
                    System.Threading.Thread.Sleep(1000);
                }
            }
        }
Example #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; }
             }
         }
     }
 }
Example #3
0
 public void ConfirmChildBatchId(string Y)
 {
     ConfirmBatchOrSample.SendKeys(Y);
     ConfirmBatchOrSample.SendKeys(Keys.Enter);
 }