Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public void RunInTheEndOfAll()
 {
     WebDriverFactory.DismissAll();
 }