Vibe Google Analytics
This commit is contained in:
@@ -4,8 +4,8 @@ namespace Tests.PageObjects;
|
||||
|
||||
public abstract class BasePage
|
||||
{
|
||||
protected readonly IPage Page;
|
||||
protected readonly string BaseUrl = "http://localhost:5256";
|
||||
protected readonly IPage Page;
|
||||
|
||||
protected BasePage(IPage page)
|
||||
{
|
||||
@@ -17,5 +17,8 @@ public abstract class BasePage
|
||||
await Page.GotoAsync($"{BaseUrl}{path}");
|
||||
}
|
||||
|
||||
public ILocator GetHeading() => Page.Locator("h1");
|
||||
}
|
||||
public ILocator GetHeading()
|
||||
{
|
||||
return Page.Locator("h1");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user