public PageManager(ICapabilities capabilities, string baseUrl, string hubUrl)
        {
            driver = WebDriverFactory.GetDriver(hubUrl, capabilities);
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));

            if (!driver.Url.StartsWith(baseUrl))
            {
                driver.Navigate().GoToUrl(baseUrl);
            }
            this.baseUrl = baseUrl;

            Login       = InitElements(new LoginPage(this));
            Internal    = InitElements(new InternalPage(this));
            UserProfile = InitElements(new UserProfilePage(this));
        }
 public void RunInTheEndOfAll()
 {
     WebDriverFactory.DismissAll();
 }