示例#1
0
文件: PageObject.cs 项目: evisar/auat
        public PageObject()
        {            

            var testConfig = TestConfiguration.Instance;

            _config =
                (from p in testConfig.Pages.OfType<PageObjectConfiguration>()
                where p.Type == this.GetType()
                select p).FirstOrDefault();

            _driver = Activator.CreateInstance(testConfig.BrowserType) as IWebDriver;

            _driver.Url = _config.Url.ToString();
            _driver.Navigate();
        }
 public void Add(PageObjectConfiguration pageConfig)
 {
     base.BaseAdd(pageConfig);
 }