示例#1
0
            public void SearchProductWithSearchInput(string productName)
            {
                mainPage.goToPage();
                mainPage.SearchProduct(productName);

                bool hasTextPageHeader = CatalogPOM.HasTextPageHeader(productName);
                bool hasProduct        = CatalogPOM.HasProduct(productName);

                Assert.True(hasTextPageHeader);
                Assert.True(hasProduct);
            }
示例#2
0
 public void openMainPage()
 {
     driver = new ChromeDriver(@"packages\Selenium.WebDriver.ChromeDriver.85.0.4183.8700\driver\win32");
     //  driver = new ChromeDriver(@"D:\Proga\Курсы\MakeUpTests\packages\Selenium.WebDriver.ChromeDriver.85.0.4183.8700\driver\win32");
     mainPage        = new MainPagePOM(driver);
     parfumPage      = new ParfumsPagePOM(driver);
     productPage     = new ProductPagePOM(driver);
     feedbackFormPOM = new FeedbackFormPOM(driver);
     CatalogPOM      = new CatalogPOM(driver);
     mainPage.goToPage();
     driver.Manage().Window.Maximize();
 }
示例#3
0
 public void openMainPage()
 {
     driver           = new ChromeDriver(@"packages\Selenium.WebDriver.ChromeDriver.85.0.4183.8700\driver\win32");
     mainPage         = new MainPagePOM(driver);
     parfumPage       = new ParfumsPagePOM(driver);
     productPage      = new ProductPagePOM(driver);
     feedbackFormPOM  = new FeedbackFormPOM(driver);
     subscribeFormPOM = new SubscribeFormPOM(driver);
     callBackPOM      = new CallBackPOM(driver);
     checkOutPOM      = new CheckOutPOM(driver);
     mainPage.goToPage();
     driver.Manage().Window.Maximize();
 }