Vibe Google Analytics
This commit is contained in:
@@ -4,14 +4,23 @@ namespace Tests.PageObjects;
|
||||
|
||||
public class DecksPage : BasePage
|
||||
{
|
||||
public DecksPage(IPage page) : base(page) { }
|
||||
public DecksPage(IPage page) : base(page)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task GotoAsync() => await NavigateToAsync("/decks");
|
||||
public async Task GotoAsync()
|
||||
{
|
||||
await NavigateToAsync("/decks");
|
||||
}
|
||||
|
||||
public ILocator GetDeckCards()
|
||||
{
|
||||
return Page.Locator(".deck-card");
|
||||
}
|
||||
|
||||
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();
|
||||
await Page.Locator(".deck-card-title").GetByText(name, new LocatorGetByTextOptions { Exact = true })
|
||||
.ClickAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user