public EstimateFundsStartPage NavigateToEstimateFundsStartPage() { string currentUrl = new Uri(WebBrowserDriver.Url).ToString(); if (currentUrl.Contains("forecasting/projections")) { WebBrowserDriver.FindElement(By.CssSelector("a[href*='estimations/start']")).Click(); } if (currentUrl.Contains("")) { } else { throw new Exception(); } return(new EstimateFundsStartPage(WebBrowserDriver)); }
public AccountHomePage NavigateToAccountHomePage() { WebBrowserDriver.FindElement(By.CssSelector("[title*='SAINSBURY']")).Click(); return(new AccountHomePage(WebBrowserDriver)); }
public EstimateCostsPage NavigateToEstimageCostsPage() { WebBrowserDriver.FindElement(By.CssSelector(".button-start")).Click(); return(new EstimateCostsPage(WebBrowserDriver)); }
public void ClickOnElement(string locator) { WebBrowserDriver.FindElement(By.CssSelector(locator)).Click(); }
internal void ClickBackLink() { var backlink = WebBrowserDriver.FindElement(By.CssSelector("a.link-back")); backlink.Click(); }