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; } } } } }
public void AddClipboardCopyOfBatches() { if (ListOfBatches != null) { foreach (ElementScope i in ListOfBatches) { ConfurmTestReactionsField.WaitForClickability(); var s = FirstBatch["clipboard-copy"]; System.Diagnostics.Debug.WriteLine(s); ConfurmTestReactionsField.SendKeys(s).SendKeys(Keys.Enter); BDReagentsWorkplacePage bDReagentsWorkplacePage = new BDReagentsWorkplacePage(); bDReagentsWorkplacePage.SetUsercode(); while (UserBarcodeForTubesManualDripping.Exists()) { try { UserBarcodeForTubesManualDripping.SendKeys(Config.UserBarCode).SendKeys(Keys.Enter); } catch (System.Exception e) { break; } } } } }