test(BrokenLinks) Now checking for broken links on a few pages

This commit is contained in:
2022-05-02 18:48:46 -04:00
parent 543ba97a3b
commit c16c0172bc
14 changed files with 247 additions and 82 deletions
+9 -2
View File
@@ -1,10 +1,9 @@
using System.Collections.ObjectModel;
using TestAutomation.Shared;
using TestAutomation.Utils;
namespace TestAutomation.Pages;
public class DatabasePage : BaseElement
public class DatabasePage : BasePage
{
public DatabasePage(Website website) : base(website)
{
@@ -12,6 +11,8 @@ public class DatabasePage : BaseElement
private IWebElement FilterNameInput => Website.Find("filterName");
public override string Url { get; set; } = "database";
private ReadOnlyCollection<IWebElement> EntityNames()
{
@@ -43,4 +44,10 @@ public class DatabasePage : BaseElement
result = EntityNames()[index].Text;
return this;
}
public DatabasePage Goto()
{
Website.Goto(Url);
return this;
}
}