public void WhenICreateSimplePreorderWithNomenclaturesAndChooseDiagnosticalCenter(string hxid1, string hxid2, string hxid3, string dc) { CCENFilterPanelPage cCENFilterPanelPage = new CCENFilterPanelPage(); cCENFilterPanelPage.SetSPB(); System.Threading.Thread.Sleep(3000); CCENNomenclaturesPage cCENNomenclaturesPage = new CCENNomenclaturesPage(); cCENNomenclaturesPage.SearchSomeHXID(hxid1); cCENNomenclaturesPage.AddSomeNomenctatureToCart(hxid1); cCENNomenclaturesPage.SearchSomeHXID(hxid2); cCENNomenclaturesPage.AddSomeNomenctatureToCart(hxid2); cCENNomenclaturesPage.SearchSomeHXID(hxid3); cCENNomenclaturesPage.AddSomeNomenctatureToCart(hxid3); CCENDelayConfirmWindow cCENDelay = new CCENDelayConfirmWindow(); var a = cCENDelay.AssertConfirmDialogWindow(); if (a) { cCENDelay.AddDelayedNomenclature(); } CCENCartPage cCENCartPage = new CCENCartPage(); cCENCartPage.GoToCartTab(); cCENCartPage.ChooseDiagnosticalCenter(dc); }
public void WhenIChooseDiagnosticCenter(string id) { CCENCartPage cCENCartPage = new CCENCartPage(); var rb = cCENCartPage.DiagnosticCenterRadioButton(id); rb.WaitForVisibility(); cCENCartPage.ChooseDiagnosticalCenter(id); }