Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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();
        }