protected override void AssertResult(string expectedTitle, string expectedUrl) { _resultDetailedPage.AssertResultTitle(expectedTitle) .AssertResultLink(expectedUrl) .ClickVisitSiteButton(); Assert.AreEqual(expectedUrl, _driver.Url); }
public void AssertAtpSearchImageResults_NoFacade() { _mainPage .Open <MainPage>() .Search("automate the planet") .ClickImages() .SetSize(Sizes.Large) .SetColor(Colors.BlackWhite) .SetTypes(Types.Clipart) .SetPeople(People.All) .SetDate(Dates.PastYear) .SetLicense(Licenses.All) .ClickImageResult(1); _resultDetailedPage.AssertResultTitle("Homepage - Automate The Planet") .AssertResultLink("https://www.automatetheplanet.com/") .ClickVisitSiteButton(); Assert.AreEqual("https://www.automatetheplanet.com/", _driver.Url); }
public void SearchImage(SearchData searchData, string expectedTitle, string expectedUrl) { _mainPage .Open <MainPage>() .Search(searchData.SearchTerm) .ClickImages() .SetSize(searchData.Size) .SetColor(searchData.Color) .SetTypes(searchData.Type) .SetPeople(searchData.People) .SetDate(searchData.Date) .SetLicense(searchData.License) .ClickImageResult(searchData.ResultNumber); _resultDetailedPage.AssertResultTitle(expectedTitle) .AssertResultLink(expectedUrl) .ClickVisitSiteButton(); Assert.AreEqual(expectedUrl, _driver.Url); }