Пример #1
0
 public void CreateDriver()
 {
     driver        = BaseDriver.GetDriver();
     requestModel  = BaseDriver.GetRequestPageModel();
     gameMainModel = BaseDriver.GetGameMainPageModel();
     logInModel    = BaseDriver.GetLogInPageModel();
 }
Пример #2
0
 public void CloseBrowser()
 {
     if (driver != null)
     {
         driver.Quit();
         BaseDriver.RemoveDriver();
     }
 }
Пример #3
0
 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/";
 }