public void CPChange() { VuePopup vue = new VuePopup(); vue.Auth(login, false); Cashbox replish = new Cashbox(); replish.EnterCashbox(); replish.CashboxPopupCPButton.Click(); replish.CashboxPopupCPinput.SendKeys("40"); replish.CashboxPopupCPButtonOK.Click(); StringAssert.AreEqualIgnoringCase("Недостаточно CP для обмена", replish.CashboxPopupCPchangeSuccess.Text); }
public void CashierReplenishmentPrivat24() { VuePopup vue = new VuePopup(); vue.Auth(login, false); Cashbox replish = new Cashbox(); replish.EnterCashbox(); replish.CashboxPopupTakeMethodPrivat24.Click(); replish.CashboxPopupInput.SendKeys(TestDataResource.Payments); replish.CashboxPopupButtonpush.Click(); replish.CashboxPopupnextSteppush.Click(); Driver.Browser.SwitchTo().Window(Driver.Browser.WindowHandles[1]); StringAssert.AreEqualIgnoringCase("USD:", replish.CashboxPopupAgreePrivat24.Text); }
public void CashierReplenishmentPayeer() { VuePopup vue = new VuePopup(); vue.Auth(login, false); Cashbox replish = new Cashbox(); replish.EnterCashbox(); replish.CashboxPopupOpenAnother.Click(); replish.CashboxPopupOpenPayeer.Click(); replish.CashboxPopupInput.SendKeys(TestDataResource.Payments); replish.CashboxPopupButtonpush.Click(); replish.CashboxPopupnextSteppush.Click(); Driver.Browser.SwitchTo().Window(Driver.Browser.WindowHandles[1]); StringAssert.AreEqualIgnoringCase("Авторизация", replish.CashboxPopupAgreePayeer.Text); }
public void CashierReplenishmentVisaMaster() { VuePopup vue = new VuePopup(); vue.Auth(login, false); Cashbox replish = new Cashbox(); //WelcomePage welcome = new WelcomePage(); //welcome.CancelButton.Click(); replish.EnterCashbox(); replish.CashboxPopupTakeMethodVisaMaster.Click(); replish.CashboxPopupInput.SendKeys(TestDataResource.Payments); replish.CashboxPopupButtonpush.Click(); Driver.Browser.SwitchTo().Frame("frame-cash"); System.Threading.Thread.Sleep(5000); Driver.Browser.SwitchTo().Frame("frame-cash-inner"); System.Threading.Thread.Sleep(5000); StringAssert.AreEqualIgnoringCase("999.00", replish.CashboxPopupAgreeVisaMaster.Text); }
public void CashWithdrawal() { VuePopup vue = new VuePopup(); vue.Auth(login, false); Cashbox replish = new Cashbox(); replish.EnterCashbox(); replish.CashboxPopupWithdrawButton.Click(); replish.CashboxPopupSelectW.Click(); replish.CashboxPopupSelectWMaster.Click(); replish.CashboxPopupInputSumma.SendKeys(TestDataResource.Payments); replish.CashboxPopuprequisite.Clear(); replish.CashboxPopuprequisite.SendKeys(TestDataResource.CreditCardVisa); replish.CashboxPopupWButton.Click(); StringAssert.AreEqualIgnoringCase("Заявка на выплату отправлена. Она будет обработана в течение 5-ти часов.", replish.CashboxPopupSucespay.Text); replish.ClosePopupVivod.Click(); }