Example #1
0
        public void GoToAccountPageAndMyLists()
        {
            homePage = new HomePage(chromeDriver);
            homePage.GoToMainPage();

            fillEmailPage        = homePage.GoToFillEmailPage();
            fillPasswordAndLogin = fillEmailPage.FillEmailAndContinue(LoginData[0]);
            fillPasswordAndLogin.FillPasswordAndLogin(LoginData[1]);


            yourListPage = new YourListPage(chromeDriver);
            yourListPage.GoToMyList();
        }
Example #2
0
        public void ClickCreateAList()
        {
            homePage = new HomePage(chromeDriver);
            homePage.GoToMainPage();

            fillEmailPage        = homePage.GoToFillEmailPage();
            fillPasswordAndLogin = fillEmailPage.FillEmailAndContinue(LoginData[0]);
            createListPage       = fillPasswordAndLogin.FillPasswordAndLogin(LoginData[1]);
            yourListPage         = createListPage.GoToCreateListPageAndCreateList();

            int[] counts = yourListPage.CreateShoppingListControl();

            // İlk alınan liste sayısı ve yeni shopping list eklendikten sonraki sayı
            log.Info("New shopping list created.");
            Assert.Greater(counts[1], counts[0]);
        }
Example #3
0
        public void Login()
        {
            homePage = new HomePage(chromeDriver);
            homePage.GoToMainPage();

            fillEmailPage        = homePage.GoToFillEmailPage();
            fillPasswordAndLogin = fillEmailPage.FillEmailAndContinue(LoginData[0]);
            createListPage       = fillPasswordAndLogin.FillPasswordAndLogin(LoginData[1]);

            // Login Control
            string helloAndName = createListPage.IsLoginSuccess();

            log.Info("Login is Success");
            Assert.AreEqual(helloAndName, "Hello, Mustafa");
            Assert.Pass(helloAndName);
        }
Example #4
0
        public void ReturnShopingListAndClickTopSearchResult()
        {
            homePage = new HomePage(chromeDriver);
            homePage.GoToMainPage();

            fillEmailPage        = homePage.GoToFillEmailPage();
            fillPasswordAndLogin = fillEmailPage.FillEmailAndContinue(LoginData[0]);
            fillPasswordAndLogin.FillPasswordAndLogin(LoginData[1]);


            yourListPage = new YourListPage(chromeDriver);
            yourListPage.GoToMyList();
            ASINValue = yourListPage.ClickTopSearchButtonAndAssert7Result();

            log.Info("ASIN value was obtained to find the product directly in the search.");
            Assert.Pass("Arama için ürün id : " + ASINValue.Trim());
        }
Example #5
0
        public void DeleteItemFromWishList()
        {
            homePage = new HomePage(chromeDriver);
            homePage.GoToMainPage();

            fillEmailPage        = homePage.GoToFillEmailPage();
            fillPasswordAndLogin = fillEmailPage.FillEmailAndContinue(LoginData[0]);
            fillPasswordAndLogin.FillPasswordAndLogin(LoginData[1]);


            yourListPage = new YourListPage(chromeDriver);
            yourListPage.GoToMyList();
            string deletedMessage = yourListPage.DeleteToWishList();

            Assert.AreEqual(deletedMessage, "Deleted");
            log.Info("Idea list deleted from wish list.");
        }
Example #6
0
        public void MoveToWishList()
        {
            homePage = new HomePage(chromeDriver);
            homePage.GoToMainPage();

            fillEmailPage        = homePage.GoToFillEmailPage();
            fillPasswordAndLogin = fillEmailPage.FillEmailAndContinue(LoginData[0]);
            fillPasswordAndLogin.FillPasswordAndLogin(LoginData[1]);


            yourListPage = new YourListPage(chromeDriver);
            yourListPage.GoToMyList();
            string successMessage = yourListPage.AddToWishList();

            Assert.AreEqual(successMessage, "Moved to");
            log.Info("Idea list has been moved to wish list.");
        }
Example #7
0
        public void ShopingListAddIdeaList()
        {
            homePage = new HomePage(chromeDriver);
            homePage.GoToMainPage();

            fillEmailPage        = homePage.GoToFillEmailPage();
            fillPasswordAndLogin = fillEmailPage.FillEmailAndContinue(LoginData[0]);
            fillPasswordAndLogin.FillPasswordAndLogin(LoginData[1]);

            yourListPage = new YourListPage(chromeDriver);
            yourListPage.GoToMyList();

            int[] ideaListCounts = yourListPage.ShopingListAddIdeaList("iPhone 8");

            Assert.Less(ideaListCounts[0], ideaListCounts[1]);
            log.Info("New Idea list added.");
        }