Beispiel #1
0
 public void TestInitalize()
 {
     HomePage          = new HomePage(Driver);
     Page              = new SharedElements(Driver);
     AccessoriesPage   = new AccessoriesPage(Driver);
     JSDriver          = (IJavaScriptExecutor)Driver;
     SearchResultsPage = new SearchResultsPage(Driver);
     productPage       = new ProductPage(Driver);
 }
Beispiel #2
0
        public void FilterFunctionalTest()
        {
            OriginalPage originalPage = new OriginalPage(driver);

            originalPage.SwitchLanguage();
            AccessoriesPage accessoriesPage =
                originalPage.OpenAccessoriesPage()
                .PointHomeAccesorries()
                .PointStationery();
            bool isFilterWork = accessoriesPage.IsFilterOn();

            Assert.That(isFilterWork, Is.EqualTo(true),
                        $"Filter is turned on {(isFilterWork ? "successfully" : "unsuccessfully")}");
        }