public void Test2(string browserName) { BrowserSetUp(browserName); MegaMenuNavBar megaMenuNavBar = new MegaMenuNavBar(driver); megaMenuNavBar.ClickAtSearchIcon(); megaMenuNavBar.TypeIntoSearchField("Pocket ECG CRS"); megaMenuNavBar.ClickAtArrowRightIcon(); SearchResultPage searchResultPage = new SearchResultPage(driver); Assert.Equal(10, searchResultPage.GetPostListCount()); Assert.Single(searchResultPage.GetPostTitleList(), "PocketECG CRS – telerehabilitacja kardiologiczna"); searchResultPage.ClickAtPaginationRightArrow(); Assert.Equal(4, searchResultPage.GetPostListCount()); }
public void Test1(string browserName) { BrowserSetUp(browserName); MegaMenuNavBar megaMenuNavBar = new MegaMenuNavBar(driver); Assert.NotEqual(megaMenuNavBar.GetContactLinkColour(), megaMenuNavBar.GetContactLinkColourAfterMouseOver()); HomePage homePage = new HomePage(driver); homePage.ClickAtMediaPackLink(); MediaPackPage mediaPackPage = new MediaPackPage(driver); mediaPackPage.ClickAtLogoDownloadLink(); Assert.Equal("logotypy.zip", FilesOperations.GetDownloadedFileName()); FilesOperations.ExtractFile("logotypy.zip"); Assert.True(FilesOperations.CheckFileExistInDownloadFolder("MA_logo_standard_claim_MONO.pdf")); }