Ejemplo n.º 1
0
        public void TC007_VerifyDetailsFunctionality(String Bname)
        {
            TestFixtureSetUp(Bname, "TC007-Verify Details Functionality.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired("QA Testing - Brand");
                carousels.VerifyCarousels();
                carousels.clickButtonOnCarousel("Details");
                carousels.VerifyDetailsFunctionality();
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite03_Reskin_Carousels_TC007");
                throw;
            }
            driver.Quit();
        }
        public void TC001_VerifyThatClickingOnTheViewAd_MarketsOrDetailsButtonInAgGridDetailOrThumbnailViewShouldOpenAModalWindowWithViewAd_Markets_MoreDetailsAndDownloadTab(String Bname)
        {
            TestFixtureSetUp(Bname, "TC001-Verify on clicking the View Ad, Markets or Details button in AgGrid's detail or thumbnail view should open a modal window with View ad, Markets , More details & Download tab.");
            try
            {
                loginPage.navigateToLoginPage().VerifyLoginPageScreenInDetail();
                loginPage.loginUsingValidEmailIdAndPassword();

                homePage.newVerifyHomePage();
                homePage.VerifyAccountOrSwitchIfRequired();

                homePage.selectViewForResultsDisplay("Details");
                homePage.VerifyDetailsViewOfAgGrid();

                viewAdPopup.clickOnButtonOfResultsCard("View Ad");
                carousels.VerifyViewAdFunctionality(true, false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyViewAdFunctionality(false);

                viewAdPopup.clickOnButtonOfResultsCard("Details");
                carousels.VerifyDetailsFunctionality(true, false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyDetailsFunctionality(false);

                viewAdPopup.clickOnButtonOfResultsCard("Download");
                viewAdPopup.VerifyDownloadsFunctionality(true);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                viewAdPopup.VerifyDownloadsFunctionality(false);

                homePage.selectViewForResultsDisplay("Thumbnail");
                homePage.VerifyThumbnailViewOfAgGrid();

                viewAdPopup.clickOnButtonOfResultsCard("View Ad");
                carousels.VerifyViewAdFunctionality(true, false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyViewAdFunctionality(false);

                viewAdPopup.clickOnButtonOfResultsCard("Details");
                carousels.VerifyDetailsFunctionality(true, false);
                viewAdPopup.clickOnButtonOfViewAdPopup("Close");
                carousels.VerifyDetailsFunctionality(false);
            }
            catch (Exception e)
            {
                Logging.LogStop(this.driver, test, e, MethodBase.GetCurrentMethod(), Bname + "_TestSuite06_Reskin_ViewAdPopup_TC001");
                throw;
            }
            driver.Quit();
        }