示例#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);
 }
示例#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);
 }
 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);
 }
 protected SeleniumWebDriver(IWebDriver webDriver, Browser browser)
 {
     this.webDriver = webDriver;
     this.browser = browser;
     xPath = new XPath();
     elementFinder = new ElementFinder(xPath);
     fieldFinder = new FieldFinder(elementFinder, xPath);
     frameFinder = new FrameFinder(this.webDriver, elementFinder,xPath);
     textMatcher = new TextMatcher();
     buttonFinder = new ButtonFinder(elementFinder, textMatcher, xPath);
     sectionFinder = new SectionFinder(elementFinder, textMatcher);
     dialogs = new Dialogs(this.webDriver);
     mouseControl = new MouseControl(this.webDriver);
     optionSelector = new OptionSelector();
 }
示例#5
0
 protected SeleniumWebDriver(IWebDriver webDriver, Browser browser)
 {
     this.webDriver = webDriver;
     this.browser   = browser;
     xPath          = new XPath();
     elementFinder  = new ElementFinder(xPath);
     fieldFinder    = new FieldFinder(elementFinder, xPath);
     frameFinder    = new FrameFinder(this.webDriver, elementFinder, xPath);
     textMatcher    = new TextMatcher();
     buttonFinder   = new ButtonFinder(elementFinder, textMatcher, xPath);
     sectionFinder  = new SectionFinder(elementFinder, textMatcher);
     dialogs        = new Dialogs(this.webDriver);
     mouseControl   = new MouseControl(this.webDriver);
     optionSelector = new OptionSelector();
 }