Beispiel #1
0
        public void Screenshot_MailnPage_LoggedIn()
        {
            VuePopup vue = new VuePopup();

            vue.Auth(TestDataResource.TestUserEmail, false);

            Driver.TakeScreenshot("JHJKJH");
        }
Beispiel #2
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);
        }
Beispiel #3
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);
        }
Beispiel #4
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);
        }
Beispiel #5
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);
        }
Beispiel #6
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();
        }