19 lines
441 B
C#
19 lines
441 B
C#
using Microsoft.Playwright;
|
|
|
|
namespace Tests.PageObjects;
|
|
|
|
public class AgentsPage : BasePage
|
|
{
|
|
public AgentsPage(IPage page) : base(page) { }
|
|
|
|
public async Task GotoAsync() => await NavigateToAsync("/agents");
|
|
|
|
public ILocator Grid => Page.Locator(".agents-grid");
|
|
|
|
public async Task WaitForGridAsync()
|
|
{
|
|
await Page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
|
await Grid.WaitForAsync();
|
|
}
|
|
}
|