コード例 #1
0
        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));
        }
コード例 #2
0
 public void RunInTheEndOfAll()
 {
     WebDriverFactory.DismissAll();
 }