Exemplo n.º 1
0
        public void CheckAskQuestionButton()
        {
            contactsModel = new ContactsPageModel(driver);
            driver.Url    = Urls.contactsPage;
            string actRes = contactsModel.FindAskQuationButton().
                            GetTextFromAskQuationButton();

            Assert.AreEqual("ЗАДАТЬ ВОПРОС", actRes);
        }
Exemplo n.º 2
0
        public void CheckOurContactsLabel()
        {
            contactsModel = new ContactsPageModel(driver);
            driver.Url    = Urls.contactsPage;
            string actRes = contactsModel.FindContactsMainLabel().
                            GetMainLabelText();

            Assert.AreEqual("Наши контакты", actRes);
        }
Exemplo n.º 3
0
        public void CheckKharkivAdress()
        {
            contactsModel = new ContactsPageModel(driver);
            driver.Url    = Urls.contactsPage;
            string actRes = contactsModel.FindKharkivCityButton().
                            ClickOnKharkivCityButton().
                            FindKharkivAddress().
                            GetTextFromKharkivAddressBlock();

            Assert.AreEqual("ул. Донец Захаржевского, 2,\r\nздание Сбербанка, этаж 5", actRes);
        }
Exemplo n.º 4
0
        public void CheckKyivAdress()
        {
            contactsModel = new ContactsPageModel(driver);
            driver.Url    = Urls.contactsPage;
            string actRes = contactsModel.FindKyivCityButton().
                            ClickOnKyivCityButton().
                            FindKyivAddress().
                            GetTextFromKyivAddressBlock();

            Assert.AreEqual("ст. метро Васильковская, ул. Сумская,1", actRes);
        }
Exemplo n.º 5
0
        public void CheckDniproAdress()
        {
            contactsModel = new ContactsPageModel(driver);
            driver.Url    = Urls.contactsPage;
            string actRes = contactsModel.FindDniproCityButton().
                            ClickOnDniproCityButton().
                            FindDniproAddress().
                            GetTextFromDniproAddressBlock();

            Assert.AreEqual("ул.Симферопольская, 17", actRes);
        }
Exemplo n.º 6
0
        public void CheckMainLabel()
        {
            ContactsPageModel contactsPageModel = new ContactsPageModel(driver);

            base.driver.Url = Urls.contactsPage;

            string actRes = contactsPageModel.FindContactsLabel()
                            .GetTextFromMainLabel();

            Assert.AreEqual("Наши контакты", actRes);
        }
Exemplo n.º 7
0
        public void CheckBakuAdress()
        {
            contactsPageModel = new ContactsPageModel(driver);
            driver.Url        = Urls.contactPage;
            string actResult = contactsPageModel
                               .FindBakuButton()
                               .ClickBakuButton()
                               .FindBakuLabel()
                               .GetTextFromBakuAdressLabel();

            Assert.AreEqual(contactsPageModel.bakuAdress, actResult);
        }
Exemplo n.º 8
0
        public void CheckKharkovLabel()
        {
            ContactsPageModel contactsPageModel = new ContactsPageModel(driver);

            base.driver.Url = Urls.contactsPage;
            driver.Manage().Window.Minimize();

            string actRes = contactsPageModel.FindKharkovContactsButton()
                            .ClickOnKharkovContactsButton()
                            .FindKharkovContactsAdress()
                            .GetTextFromKharkovContactsAdress();

            Assert.AreEqual("ул. Донец Захаржевского, 2,\r\nздание Сбербанка, этаж 5", actRes);
        }
Exemplo n.º 9
0
        public void CheckPetersburgLabel()
        {
            ContactsPageModel contactsPageModel = new ContactsPageModel(driver);

            base.driver.Url = Urls.contactsPage;
            driver.Manage().Window.Minimize();

            string actRes = contactsPageModel.FindPetersburgContactsButton()
                            .ClickOnPetersburgContactsButton()
                            .FindPetersburgContactsAdress()
                            .GetTextFromPetersburgContactsAdress();

            Assert.AreEqual("площадь Карла Фаберже, 8Б, офис 440\r\nБЦ Золотая Долина", actRes);
        }
Exemplo n.º 10
0
        public void CheckBakuLabel()
        {
            ContactsPageModel contactsPageModel = new ContactsPageModel(driver);

            base.driver.Url = Urls.contactsPage;
            driver.Manage().Window.Minimize();

            string actRes = contactsPageModel.FindBakuContactsButton()
                            .ClickOnBakuContactsButton()
                            .FindBakuContactsAdress()
                            .GetTextFromBakuContactsAdress();

            Assert.AreEqual("проспект Бабека 10E, Rusel Plaza, 7 этаж", actRes);
        }
Exemplo n.º 11
0
        public void CheckKyivLabel()
        {
            ContactsPageModel contactsPageModel = new ContactsPageModel(driver);

            base.driver.Url = Urls.contactsPage;
            driver.Manage().Window.Minimize();

            string actRes = contactsPageModel.FindKyivContactsButton()
                            .ClickOnKyivContactsButton()
                            .FindkyivContactsAdress()
                            .GetTextFromKyivContactsAdress();

            Assert.AreEqual("ст. метро Васильковская, ул. Сумская,1", actRes);
        }
Exemplo n.º 12
0
        public void CheckDneprLabel()
        {
            ContactsPageModel contactsPageModel = new ContactsPageModel(driver);

            base.driver.Url = Urls.contactsPage;
            driver.Manage().Window.Minimize();

            string actRes = contactsPageModel.FindDneprContactsButton()
                            .ClickOnDneprContactsButton()
                            .FindDneprContactsAdress()
                            .GetTextFromDneprContactsAdress();

            Assert.AreEqual("ул.Симферопольская, 17", actRes);
        }
Exemplo n.º 13
0
        public void CheckAskQuestion()
        {
            contactsPageModel = new ContactsPageModel(driver);
            driver.Url        = Urls.contactPage;
            contactsPageModel
            .FindAskQuestionButton()
            .ClickAskQuestioonButton()
            .FindInputNameField()
            .InputNameInField()
            .FindInputEmailField()
            .InputEmailInField()
            .FindInputMessageField()
            .InputMessageInField();

            Assert.AreEqual(true, true);
        }
Exemplo n.º 14
0
        public MainPageTest()
        {
            pageModel      = new MainPageModel();
            coursesModel   = new CoursesPageModel();
            graduatesModel = new GraduatesPageModel();
            newsModel      = new NewsPageModel();
            blogModel      = new BlogPageModel();
            aboutUsModel   = new AboutUsPageModel();
            contactsModel  = new ContactsPageModel();
            languageModel  = new LanguagePageModel();
            faqModel       = new FAQPageModel();
            privacyPolici  = new PrivacyPolicyPageModel();

            contactKyivPage      = new ContactKyivPage();
            contactDneprPage     = new ContactDneprPage();
            contactPeterburgPage = new ContactPeterburgPage();
            contactKharkovPage   = new ContactKharkovPage();

            coursesDneprPage     = new CoursesDneprPage();
            coursesKyivPage      = new CoursesKyivPage();
            coursesBakuPage      = new CoursesBakuPage();
            coursesPeterburgPage = new CoursesPeterburgPage();
            coursesKharkovPage   = new CoursesKharkovPage();

            uaLanguageSelect = new UaLanguageSelect();
            azLanguageSelect = new AzLanguageSelect();

            sitePeterburgCourses = new SitePeterburgCourses();
            siteKyivCourses      = new SiteKyivCourses();
            siteDneprCourses     = new SiteDneprCourses();
            siteKharkovCourses   = new SiteKharkovCourses();
            siteBakuCourses      = new SiteBakuCourses();

            articleNewsPage = new ArticleNewsPage();


            bioGonzovPage = new BiographyGonzovPage();
        }
Exemplo n.º 15
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     context = BindingContext as ContactsPageModel;
 }
Exemplo n.º 16
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     SetMenu(MenuLayout, 1);
     context = BindingContext as ContactsPageModel;
 }
Exemplo n.º 17
0
 public OurContactsTest()
 {
     contactsPage = new ContactsPageModel();
 }