Esempio n. 1
0
        public void ChangeEmailNotificationTest()
        {
            ChromeOptions options = new ChromeOptions();

            options.PageLoadStrategy = PageLoadStrategy.None;
            using (ChromeDriver dr = new ChromeDriver(Directory.GetCurrentDirectory(), options))
            {
                var mainPageAliexpress    = new MainPageAliexpress(dr);
                var accountHomePage       = mainPageAliexpress.GoToAccountHomePage();
                var accounSettingsPage    = accountHomePage.GotoAccountSettingsPage();
                var emailSubscriptionPage = accounSettingsPage.GotoEmailSubscriptionPage();
                emailSubscriptionPage.ClickButtonsSubscription();
                Assert.True(emailSubscriptionPage.Check());
            }
        }
        public void PositiveTestMyWishes()
        {
            ChromeOptions options = new ChromeOptions();

            options.PageLoadStrategy = PageLoadStrategy.None;
            using (ChromeDriver dr = new ChromeDriver(Directory.GetCurrentDirectory(), options))
            {
                var mainPageAliexpress        = new MainPageAliexpress(dr);
                var searchProductForWishes    = mainPageAliexpress.MainPageGoToLogin();
                var myWishesPage              = searchProductForWishes.AddProductToWishes();
                var creatingNewListWishesPage = myWishesPage.MyWishesCreateList();
                var myWishesPageWithNewList   = creatingNewListWishesPage.CreateNewList(true);
                var myWishesPageInAddingList  = myWishesPageWithNewList.MyWishesAddProductToList();
                myWishesPageInAddingList.MyWishesDeleteProductInList();
            }
        }