public PageManager(ICapabilities capabilities, string baseUrl, string hubUrl)
        {
            driver = WebDriverFactory.GetDriver(hubUrl, capabilities);

            if (!driver.Url.StartsWith(baseUrl))
            {
                driver.Navigate().GoToUrl(baseUrl);
            }
            driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));

            this.baseUrl = baseUrl;

            PageNoLogin    = InitElements(new SravniruPageNoLogin(this));
            PageAfterLogin = InitElements(new SravniruPageAfterLogin(this));
            UserProfile    = InitElements(new UserProfilePageAfterLogin(this));
        }
 public void RunInTheEndOfAll()
 {
     WebDriverFactory.DismissAll();
 }