public void VerifyHomeLinkLoadHomePage() { string expectedResult = "Home - Ultimate QA"; HomeLink.Click(); string actualResult = Driver.Title; Assert.AreEqual(expectedResult, actualResult); }
public void ClickOnHomeLink() { if (HomeLink.Displayed) { HomeLink.Click(); } else { throw new Exception("Element is not found or not clickable"); } }
protected void NavigateToHomePage() { HomeLink.Click(); }