Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
        public void Profile_FillPhone()
        {
            RegistrationPage registr = new RegistrationPage();
            Random           rnd     = new Random();

            registr.Registration(rnd.Next().ToString() + "@mail.ru", false);
            Thread.Sleep(5000);
            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);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
        //      [Test]
        public void Profile_FillPersonalInfo()
        {
            RegistrationPage registr = new RegistrationPage();
            Random           rnd     = new Random();

            registr.Registration(rnd.Next().ToString() + "@mail.ru", false);
            Thread.Sleep(5000);
            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);
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
0
        public void Profile_FillTitle()
        {
            RegistrationPage registr = new RegistrationPage();
            Random           rnd     = new Random();

            registr.Registration(rnd.Next().ToString() + "@mail.ru", false);
            Thread.Sleep(5000);
            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);
        }