public void Acceptance_S09_TC02_CanGoThroughAddinPage_Outlook()
        {
            Pages.OfficeGettingStartedPage.OfficeAddInGetStarted();
            Assert.IsTrue(Pages.OfficeAddInPage.IsAtAddinPage(), "Failed to open Office Add-in Getting started page.");
            Assert.IsTrue(Pages.OfficeAddInPage.OnlyDefaultCardsDisplayed(), "Cards in Add-in page are not displayed correctly.");

            // Select app
            Product product = Product.Outlook;

            Pages.OfficeAddInPage.CardChooseProduct.ChooseProduct(product);
            Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingProductExplore(product), "Failed to choose product {0}.", product.ToString());
            Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingVideo(product), "Failed to choose product {0}.", product.ToString());
            Assert.IsTrue(Pages.OfficeAddInPage.IsCardDisplayed("build"), "Card with id 'build' in Add-in page is not displayed correctly.");
            //Assert.IsTrue(Pages.OfficeAddInPage.IsCardDisplayed("more"), "Card with id 'more' in Add-in page is not displayed correctly.");
            //Assert.IsFalse(Pages.OfficeAddInPage.IsCardDisplayed("AllSetDeepBlue"), "Card with id 'AllSetDeepBlue' in Office 365 page is not displayed correctly.");

            // Explore
            // Pages.OfficeAddInPage.CardOutlook.Explore.play();

            //** WE only show build card
            //** TODO: modify code to cick on build tool and then validate "more" card.
            // Build
            ////Pages.OfficeAddInPage.CardOutlook.Build.StartBuilding();
            //Assert.IsTrue(Pages.OfficeAddInPage.CardOutlook.Build.IsShowingBuildPage(), "Failed to open build page");
            //Assert.IsTrue(Pages.OfficeAddInPage.IsCardDisplayed("AllSetDeepBlue"), "Card with id 'AllSetDeepBlue' in Office 365 page is not displayed correctly.");

            //// More Resource
            //Pages.OfficeAddInPage.CardOutlook.MoreResouces.OutlookDevCenter();
            //Assert.IsTrue(Pages.OfficeAddInPage.CardOutlook.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Outlook Dev Center page.");
            //Pages.OfficeAddInPage.CardOutlook.MoreResouces.DownLoadStarterSample();
            //Assert.IsTrue(Pages.OfficeAddInPage.CardOutlook.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open DownLoad Sample page.");
            //Pages.OfficeAddInPage.CardOutlook.MoreResouces.DesignYourAddIn();
            //Assert.IsTrue(Pages.OfficeAddInPage.CardOutlook.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Design guidelines page.");
            //Pages.OfficeAddInPage.CardOutlook.MoreResouces.MoreCodeSamples();
            //Assert.IsTrue(Pages.OfficeAddInPage.CardOutlook.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Code Samples page.");
            //Pages.OfficeAddInPage.CardOutlook.MoreResouces.OfficeAddInTypes();
            //Assert.IsTrue(Pages.OfficeAddInPage.CardOutlook.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Add-in Types page.");
            //Pages.OfficeAddInPage.CardOutlook.MoreResouces.PublishYourAddIn();
            //Assert.IsTrue(Pages.OfficeAddInPage.CardOutlook.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Publish AddIn page.");
            //Pages.OfficeAddInPage.CardOutlook.MoreResouces.ReadTheDocs();
            //Assert.IsTrue(Pages.OfficeAddInPage.CardOutlook.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Add-in overview page.");
        }
        public void Acceptance_S09_TC01_CanGoThroughAddinPage_Excel()
        {
            // Select app
            Product product = Product.Excel;

            Pages.OfficeAddInPage.CardChooseProduct.ChooseProduct(product);
            Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingProductExplore(product), "Failed to choose product {0}.", product.ToString());
            Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingVideo(product), "Failed to show video about product {0}.", product.ToString());

            //Browser.SaveScreenShot(product.ToString());
            // Explore
            // Pages.OfficeAddInPage.CardExcel.Explore.play();

            // Build
            Pages.OfficeAddInPage.CardExcel.Build.StartBuilding();
            Assert.IsTrue(Pages.OfficeAddInPage.CardExcel.Build.IsShowingBuildPage(), "The building page should be opened successfully");

            // More Resource
            Pages.OfficeAddInPage.CardExcel.MoreResouces.DownLoadStarterSample();
            Assert.IsTrue(Pages.OfficeAddInPage.CardExcel.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open DownLoad Sample page.");
            Pages.OfficeAddInPage.CardExcel.MoreResouces.DesignYourAddIn();
            Assert.IsTrue(Pages.OfficeAddInPage.CardExcel.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Design guidelines page.");
            Pages.OfficeAddInPage.CardExcel.MoreResouces.MoreCodeSamples();
            Assert.IsTrue(Pages.OfficeAddInPage.CardExcel.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Code Samples page.");
            Pages.OfficeAddInPage.CardExcel.MoreResouces.OfficeAddInTypes();
            Assert.IsTrue(Pages.OfficeAddInPage.CardExcel.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Add-in Types page.");
            Pages.OfficeAddInPage.CardExcel.MoreResouces.PublishYourAddIn();
            Assert.IsTrue(Pages.OfficeAddInPage.CardExcel.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Publish AddIn page.");
            Pages.OfficeAddInPage.CardExcel.MoreResouces.ReadTheDocs();
            Assert.IsTrue(Pages.OfficeAddInPage.CardExcel.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Add-in overview page.");
        }
        public void Comps_S10_TC01_CanChooseProduct_PowerPoint()
        {
            Product product = Product.PowerPoint;

            Pages.OfficeAddInPage.CardChooseProduct.ChooseProduct(product);
            Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingProductExplore(product), "Failed to choose product {0}.", product.ToString());
            Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingVideo(product), "Failed to show video about product {0}.", product.ToString());
        }
        public void Comps_S12_TC01_CanStartBuilding_Excel()
        {
            Product product = Product.Excel;

            Pages.OfficeAddInPage.CardChooseProduct.ChooseProduct(product);
            Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingProductExplore(product), "Failed to choose product {0}.", product.ToString());
            Pages.OfficeAddInPage.CardExcel.Build.StartBuilding();
            Assert.IsTrue(Pages.OfficeAddInPage.CardExcel.Build.IsShowingBuildPage(), "Failed to open build page");
        }
        public void Acceptance_S09_TC04_CanGoThroughAddinPage_Word()
        {
            // Select app
            Product product = Product.Word;

            Pages.OfficeAddInPage.CardChooseProduct.ChooseProduct(product);
            Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingProductExplore(product), "Failed to choose product {0}.", product.ToString());
            //Assert.IsTrue(Pages.OfficeAddInPage.CardChooseProduct.IsShowingExampleOrVideo(product), "Failed to choose product {0}.", product.ToString());
            //Browser.SaveScreenShot(product.ToString());
            // Explore
            // Pages.OfficeAddInPage.CardWord.Explore.play();

            // Build
            Pages.OfficeAddInPage.CardWord.Build.StartBuilding();
            Assert.IsTrue(Pages.OfficeAddInPage.CardWord.Build.IsShowingBuildPage(), "Failed to open build page");

            // More Resource
            Pages.OfficeAddInPage.CardWord.MoreResouces.DesignYourAddIn();
            Assert.IsTrue(Pages.OfficeAddInPage.CardWord.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Design guidelines page.");
            Pages.OfficeAddInPage.CardWord.MoreResouces.MoreCodeSamples();
            Assert.IsTrue(Pages.OfficeAddInPage.CardWord.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Code Samples page.");
            Pages.OfficeAddInPage.CardWord.MoreResouces.OfficeAddInTypes();
            Assert.IsTrue(Pages.OfficeAddInPage.CardWord.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Add-in Types page.");
            Pages.OfficeAddInPage.CardWord.MoreResouces.PublishYourAddIn();
            Assert.IsTrue(Pages.OfficeAddInPage.CardWord.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Publish AddIn page.");
            Pages.OfficeAddInPage.CardWord.MoreResouces.ReadTheDocs();
            Assert.IsTrue(Pages.OfficeAddInPage.CardWord.MoreResouces.IsShowingCorrectResourcePage(), "Failed to open Add-in overview page.");
        }