18 lines
462 B
C#
18 lines
462 B
C#
using Microsoft.Playwright;
|
|
|
|
namespace Tests.PageObjects;
|
|
|
|
public class DecksPage : BasePage
|
|
{
|
|
public DecksPage(IPage page) : base(page) { }
|
|
|
|
public async Task GotoAsync() => await NavigateToAsync("/decks");
|
|
|
|
public ILocator GetDeckCards() => Page.Locator(".deck-card");
|
|
|
|
public async Task ClickDeckByNameAsync(string name)
|
|
{
|
|
await Page.Locator(".deck-card-title").GetByText(name, new() { Exact = true }).ClickAsync();
|
|
}
|
|
}
|