Stub Gen Selenium Tests
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using OpenQA.Selenium;
|
||||
|
||||
namespace AOW4.SeleniumTests.Pages;
|
||||
|
||||
public class CounterPage
|
||||
{
|
||||
private readonly IWebDriver _driver;
|
||||
public CounterPage(IWebDriver driver) => _driver = driver;
|
||||
|
||||
public bool IsAt()
|
||||
{
|
||||
var url = _driver.Url ?? string.Empty;
|
||||
return url.Contains("counter", System.StringComparison.OrdinalIgnoreCase) || _driver.PageSource.Contains("Counter");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user