コード例 #1
0
        public PageManager(ICapabilities capabilities, string baseUrl, string hubUrl)
        {
            driver = WebDriverFactory.GetDriver(hubUrl, capabilities);
            driver.Manage().Timeouts().ImplicitlyWait(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));
        }
コード例 #2
0
 public void RunInTheEndOfAll()
 {
     WebDriverFactory.DismissAll();
 }