Пример #1
0
        protected void SelectFirstBoyToy()
        {
            var mainPage         = new MainPage(Driver);
            var childrenToysPage = new ChildrenToysPage(Driver);
            var boysToysPage     = new BoysToysPage(Driver);

            mainPage.ChildrenToysClick();
            childrenToysPage.BoysToysClick();
            boysToysPage.ClickOnFirstToy();
        }
Пример #2
0
        public void ViewToy_SelectToyForGirls_ContainsToyForGirlsOrForBoysAndGirlsInfo()
        {
            string[] EXPECTES_SPECIFICATIONS = { "Для мальчиков и девочек", "Для девочек" };
            var      mainPage         = new MainPage(Driver);
            var      childrenToysPage = new ChildrenToysPage(Driver);
            var      girlsToysPage    = new GirlsToysPage(Driver);
            var      viewToyPage      = new ViewToyPage(Driver);

            mainPage.ChildrenToysClick();
            childrenToysPage.GirlsToysClick();
            girlsToysPage.ClickOnFirstToy();

            Assert.IsTrue(EXPECTES_SPECIFICATIONS.Contains(viewToyPage.GetToysSexInfo(false)));
        }