public LoginPage NavigateToLoginPage() { WebBrowserDriver.Navigate().GoToUrl(BaseUrl); var homepage = new HomePage(WebBrowserDriver); return(homepage.MoveToLoginPage()); }
public FundingProjectionPage NavigateToFundingProjectionPage() { var currentUrl = new Uri(WebBrowserDriver.Url); var baseUrl = currentUrl.GetLeftPart(UriPartial.Authority); WebBrowserDriver.Navigate().GoToUrl($"{baseUrl}/accounts/{EmployerHash}/forecasting/projections"); return(new FundingProjectionPage(WebBrowserDriver)); }
internal ApprenticeshipSearchResultPage NavigateToSearchResultPage() { WebBrowserDriver.Navigate().GoToUrl(BaseUrl.Combine("Apprenticeship/SearchResults?Keywords=")); return(new ApprenticeshipSearchResultPage(WebBrowserDriver)); }
internal ProviderLocationSearchResultPage NavigateToSearchProviderLocationResultPage(string course, string postCode) { WebBrowserDriver.Navigate().GoToUrl(BaseUrl.Combine($"Provider/FrameworkResults?PostCode={postCode}&IsLevyPayingEmployer=true&apprenticeshipid={course}")); return(new ProviderLocationSearchResultPage(WebBrowserDriver)); }
internal StartPage NavigateToStartPage() { WebBrowserDriver.Navigate().GoToUrl(BaseUrl.Combine("")); return(new StartPage(WebBrowserDriver)); }