using OpenQA.Selenium.Chrome; using System.Linq; using System.Text; using System.Threading.Tasks; using OpenQA.Selenium; using LukanPOM.PageObjects; namespace LukanPOM.Common { internal class TestBase { protected HomePage Home { get; private set; } protected HomeTwo HomeTwo { get; private set; } protected IWebDriver Driver { get; private set; } [SetUp] public void Setup() { Driver = new ChromeDriver(); Driver.Manage().Window.Maximize(); Driver.Navigate().GoToUrl("https://lukan.cz"); Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); Home = new HomePage(Driver); HomeTwo = new HomeTwo(Driver); } [TearDown] public void TearDown() { Driver.Quit(); } } }