Permalink
Find file
1e8d6d5 Oct 10, 2013
executable file 26 lines (22 sloc) 663 Bytes
using MvcMusicStore.FunctionalTests.Framework;
using OpenQA.Selenium;
namespace MvcMusicStore.FunctionalTests.PageObjects
{
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));
}
}
}