Beispiel #1
0
        public void ExploreShipsTest()
        {
            DashBoardPage dashBoardPage  = new DashBoardPage(driver);
            bool          isWhalePresent = dashBoardPage.CheckPresenceOfWhaleWatchingLink();

            dashBoardPage.WaitForHambergerMenu();
            dashBoardPage.ClickOnHambergerMenu();
            dashBoardPage.ClickOnExperience();
            dashBoardPage.ClickOnOurShips();

            ShipsPage shipsPage = new ShipsPage(driver);

            shipsPage.ChooseRhapsodyOfTheSeas();

            DeckPlanPage deckPlanPage = new DeckPlanPage(driver);

            deckPlanPage.WaitForDeckPlan();
            deckPlanPage.ClickOnDeckPlans();
            deckPlanPage.WaitForViewEle();
            deckPlanPage.ChangeToDeckEight();
            deckPlanPage.WaitforpresenceofRoyalSuite();

            //Check the presence of "Royal Suite"
            bool isRoyalSuitePresent = deckPlanPage.CheckPresenceOfRoyalSuite();

            bool isBothPresent = false;

            if (isWhalePresent == true && isRoyalSuitePresent == true)
            {
                isBothPresent = true;
            }

            Assert.True(isBothPresent, "Does not meet all requirenment", null);
        }