public void InitializeRunTimeContex()
        {
            ContextParameter cp = new ContextParameter();

            _objectContainer.RegisterTypeAs <PageFactory, IPageFactory>();
            _objectContainer.RegisterInstanceAs <IWebDriver>(CreateWebDriver(cp.BrowserName));
            _objectContainer.RegisterTypeAs <WorkContext, IWorkContext>();
        }
Ejemplo n.º 2
0
 public WorkContext(IWebDriver browser)
 {
     Browser          = browser;
     ContextParemeter = new ContextParameter();
 }