Ejemplo n.º 1
0
 protected SeleniumWebDriver(IWebDriver webDriver, Browser browser)
 {
     this.webDriver = webDriver;
     this.browser = browser;
     xPath = new XPath(browser.UppercaseTagNames);
     elementFinder = new ElementFinder();
     frameFinder = new FrameFinder(this.webDriver, elementFinder,xPath);
     textMatcher = new TextMatcher();
     windowHandleFinder = new WindowHandleFinder(this.webDriver);
     dialogs = new Dialogs(this.webDriver);
     mouseControl = new MouseControl(this.webDriver);
 }
Ejemplo n.º 2
0
 protected SeleniumWebDriver(IWebDriver webDriver, Browser browser)
 {
     this.webDriver     = webDriver;
     this.browser       = browser;
     xPath              = new XPath(browser.UppercaseTagNames);
     elementFinder      = new ElementFinder();
     frameFinder        = new FrameFinder(this.webDriver, elementFinder, xPath);
     textMatcher        = new TextMatcher();
     windowHandleFinder = new WindowHandleFinder(this.webDriver);
     dialogs            = new Dialogs(this.webDriver);
     mouseControl       = new MouseControl(this.webDriver);
 }
Ejemplo n.º 3
0
 protected SeleniumWebDriver(IWebDriver webDriver,
                             Browser browser)
 {
     _webDriver             = webDriver;
     _browser               = browser;
     _elementFinder         = new ElementFinder();
     _textMatcher           = new TextMatcher();
     _dialogs               = new Dialogs(_webDriver);
     _mouseControl          = new MouseControl(_webDriver);
     _seleniumWindowManager = new SeleniumWindowManager(_webDriver);
     _frameFinder           = new FrameFinder(_webDriver, _elementFinder, new XPath(browser.UppercaseTagNames), _seleniumWindowManager);
     _windowHandleFinder    = new WindowHandleFinder(_webDriver, _seleniumWindowManager);
     Cookies = new Cookies(_webDriver);
 }