Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (22 sloc) 676 Bytes
using MvcMusicStore.FunctionalTests.Framework;
using OpenQA.Selenium;
namespace MvcMusicStore.FunctionalTests.StronglyTypedPageObjects
{
public class HomePage : Page
{
public static HomePage Initiate()
{
var driver = Host.Instance.WebDriver;
driver.Navigate().GoToUrl(driver.Url);
return new HomePage();
}
public LogonPage GoToAdminForAnonymousUser()
{
return NavigateTo<LogonPage>(By.LinkText("Admin"));
}
public AlbumBrowsePage SelectGenreByName(string genre)
{
return NavigateTo<AlbumBrowsePage>(By.LinkText(genre));
}
}
}