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

            vue.Auth(TestDataResource.TestUserEmail, false);

            Driver.TakeScreenshot("JHJKJH");
        }
示例#2
0
        public void Registration_ByPhone_Positive()
        {
            Random        rnd = new Random();
            VuePopup      vue = new VuePopup();
            HeaderButtons hdr = new HeaderButtons();

            vue.Registration(true);
            StringAssert.AreEqualIgnoringCase("Профиль", hdr.ProfileLink.Text);
        }
示例#3
0
        public void Authorization_RestorePassEmail_Positive()
        {
            VuePopup      vue    = new VuePopup();
            HeaderButtons header = new HeaderButtons();

            header.LoginButton.Click();
            vue.LoginEmailTextBox.Clear();
            vue.LoginEmailTextBox.SendKeys(TestDataResource.TestRestoreUserEmail);
            vue.RestorePassButton.Click();

            ///TODO добавить проверку почты
        }
示例#4
0
        public void Authorization_RestorePass_Negative()
        {
            HeaderButtons header = new HeaderButtons();
            VuePopup      vue    = new VuePopup();

            header.LoginButton.Click();
            vue.PhoneTabLogin.Click();
            vue.RestorePassButton.Click();
            vue.LoginSubmitButton.Click();

            StringAssert.AreEqualIgnoringCase("Поле Телефон обязательно для заполнения.", vue.LoginEmailErrorText.Text);
        }
示例#5
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);
        }
示例#6
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);
        }
示例#7
0
        public void Profile_FillPhone()
        {
            VuePopup vue = new VuePopup();
            Random   rnd = new Random();

            vue.Registration(false);
            vue.CloseWizzardPopup.Click();
            Driver.Browser.Url = TestDataResource.MainPageURL + "/profile/account/";

            Profile_AccountPage account = new Profile_AccountPage();

            account.PlayerPhoneTextBox.SendKeys("500508" + rnd.Next(100, 999).ToString());
            account.SavePhoneButton.Click();

            Assert.IsTrue(account.SuccessSaveMessage.Displayed);
        }
示例#8
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);
        }
示例#9
0
        public void Authorization_FacebookLogin_Positive()
        {
            HeaderButtons header = new HeaderButtons();
            VuePopup      vue    = new VuePopup();

            header.LoginButton.Click();
            vue.FacebookLoginButton.Click();

            SocialNetworkPages facebook = new SocialNetworkPages();

            facebook.FaceBookLoginTextBox.SendKeys(TestDataResource.FacebookLogin);
            facebook.FaceBookPassTextBox.SendKeys(TestDataResource.FacebookPass);
            facebook.FaceBookLoginButton.Click();

            ProfilePage profile = new ProfilePage();

            StringAssert.Contains("ПРОФИЛЬ", profile.ProfileHeaderText.Text);
        }
示例#10
0
        public void Authorization_Twitter_Positive()
        {
            VuePopup      vue    = new VuePopup();
            HeaderButtons header = new HeaderButtons();

            header.LoginButton.Click();
            vue.TwitterLoginButton.Click();

            SocialNetworkPages twitter = new SocialNetworkPages();

            twitter.TwitterLoginTextBox.SendKeys(TestDataResource.TwitterLogin);
            twitter.TwitterPassTextBox.SendKeys(TestDataResource.TwitterPass);
            twitter.TwitterLoginButton.Click();

            ProfilePage profile = new ProfilePage();

            StringAssert.Contains("ПРОФИЛЬ", profile.ProfileHeaderText.Text);
        }
示例#11
0
        //[Ignore ("not complited")]
        public void Profile_FillPersonalInfo()
        {
            VuePopup vue = new VuePopup();
            Random   rnd = new Random();

            vue.Registration(false);
            vue.CloseWizzardPopup.Click();
            Driver.Browser.Url = TestDataResource.MainPageURL + "/profile/account/";

            Profile_AccountPage account = new Profile_AccountPage();

            account.ChooseCountry();
            account.CityTextBox.SendKeys("Kyiv");
            account.AddressListBox.SendKeys("23007 Ukraine, Kyiv, Hreschatic 25/12");
            account.SavePersonalInfoButton.Click();

            Assert.IsTrue(account.SuccessSaveMessage.Displayed);
        }
示例#12
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);
        }
示例#13
0
        public void Profile_FillTitle()
        {
            VuePopup vue = new VuePopup();
            Random   rnd = new Random();

            vue.Registration(true);
            vue.CloseWizzardPopup.Click();
            Driver.Browser.Url = TestDataResource.MainPageURL + "/profile/account/";

            Profile_AccountPage account = new Profile_AccountPage();

            account.NameTextBox.SendKeys(TestDataResource.UserName);
            account.SurnameTextBox.SendKeys(TestDataResource.UserSurname);
            account.NicknameTextBox.SendKeys(TestDataResource.UserNickname);
            account.MaleGenderRadioButton.Click();
            account.FillDate();
            account.SaveTitleButton.Click();

            Assert.IsTrue(account.SuccessSaveMessage.Displayed);
        }
示例#14
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();
        }