public void CreateDriver() { driver = BaseDriver.GetDriver(); requestModel = BaseDriver.GetRequestPageModel(); gameMainModel = BaseDriver.GetGameMainPageModel(); logInModel = BaseDriver.GetLogInPageModel(); }
public void CloseBrowser() { if (driver != null) { driver.Quit(); BaseDriver.RemoveDriver(); } }
public void GivenTheGameCrypto_BattleIsOpenedInGoogleChrome() { gameMainModel = BaseDriver.GetGameMainPageModel(); driver = BaseDriver.GetDriver(); //driver.Manage().Window.Maximize(); driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(7); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(7); driver.Url = "http://crypto-battle.pp.ua/"; }