public void Test01_AtLeast3CardsAreBeingDisplayed()
        {
            ShowResultPage showResultPage = new ShowResultPage(driver);

            // Go to the test site
            driver.Url = URL;

            // Wait for page load
            WaitForPageLoad.WaitPageLoad(driver, TimeSpan.FromSeconds(120));

            // Go to Travel section
            TravelInsurancePage travelInsurancePage = new TravelInsurancePage(driver);

            travelInsurancePage.insuranceTabClick();
            WaitForPageLoad.WaitPageLoad(driver, TimeSpan.FromSeconds(120));
            travelInsurancePage.travelTabClick();

            // Go to the Travel results page
            WaitForPageLoad.WaitPageLoad(driver, TimeSpan.FromSeconds(120));
            travelInsurancePage.showMyResultButtonClick();
            WaitForPageLoad.WaitPageLoad(driver, TimeSpan.FromSeconds(120));

            // Make sure at least 3 cards are being displayed
            totalCardOnPage = showResultPage.totalCardOnPage();
            Assert.GreaterOrEqual(totalCardOnPage, 3);
        }
示例#2
0
 public static void OneTimeSetup()
 {
     driver               = CustomDriver.GetChromeDriver();
     _dropdownDemoPage    = new DropdownDemoNewPage(driver);// naujas objektas
     _vartuTechnikaPage   = new DemoVTPage(driver);
     _sebCalculatorPage   = new SebCalculatorPage(driver);
     _senukaiPage         = new SenukaiPage(driver);
     _alertPage           = new AlertPage(driver);
     _autoInsurancePage   = new AutoInsurancePage(driver);
     _travelInsurancePage = new TravelInsurancePage(driver);
     _contactToBTAPage    = new ContactToBTAPage(driver);
 }