Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #3
0
 public SeleniumWebDriver()
 {
     selenium = new DriverFactory().NewRemoteWebDriver();
     scoping = new Scoping(selenium);
     elementFinder = new ElementFinder(scoping);
     fieldFinder = new FieldFinder(elementFinder);
     iframeFinder = new IFrameFinder(selenium, elementFinder);
     textMatcher = new TextMatcher();
     buttonFinder = new ButtonFinder(elementFinder, textMatcher);
     sectionFinder = new SectionFinder(selenium, elementFinder,textMatcher);
     dialogs = new Dialogs(selenium);
     mouseControl = new MouseControl(selenium);
     optionSelector = new OptionSelector();
 }
 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(RemoteWebDriver webDriver)
 {
     selenium       = webDriver;
     xPath          = new XPath();
     scoping        = new Scoping(selenium);
     elementFinder  = new ElementFinder(scoping, xPath);
     fieldFinder    = new FieldFinder(elementFinder, xPath);
     iframeFinder   = new IFrameFinder(selenium, elementFinder, xPath);
     textMatcher    = new TextMatcher();
     buttonFinder   = new ButtonFinder(elementFinder, textMatcher, xPath);
     sectionFinder  = new SectionFinder(elementFinder, textMatcher);
     dialogs        = new Dialogs(selenium);
     mouseControl   = new MouseControl(selenium);
     optionSelector = new OptionSelector();
 }
Beispiel #6
0
 protected SeleniumWebDriver(RemoteWebDriver webDriver)
 {
     selenium = webDriver;
     xPath = new XPath();
     scoping = new Scoping(selenium);
     elementFinder = new ElementFinder(scoping,xPath);
     fieldFinder = new FieldFinder(elementFinder, xPath);
     iframeFinder = new IFrameFinder(selenium, elementFinder,xPath);
     textMatcher = new TextMatcher();
     buttonFinder = new ButtonFinder(elementFinder, textMatcher, xPath);
     sectionFinder = new SectionFinder(elementFinder, textMatcher);
     dialogs = new Dialogs(selenium);
     mouseControl = new MouseControl(selenium);
     optionSelector = new OptionSelector();
 }
 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();
 }
Beispiel #8
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();
 }
Beispiel #9
0
 public ButtonFinder(ElementFinder elementFinder, TextMatcher textMatcher, XPath xPath)
 {
     this.elementFinder = elementFinder;
     this.textMatcher = textMatcher;
     this.xPath = xPath;
 }
Beispiel #10
0
 public SectionFinder(ElementFinder elementFinder, TextMatcher textMatcher)
 {
     this.elementFinder = elementFinder;
     this.textMatcher = textMatcher;
 }
Beispiel #11
0
 public SectionFinder(RemoteWebDriver selenium, ElementFinder elementFinder, TextMatcher textMatcher)
 {
     this.selenium = selenium;
     this.elementFinder = elementFinder;
     this.textMatcher = textMatcher;
 }
Beispiel #12
0
 public ButtonFinder(ElementFinder elementFinder, TextMatcher textMatcher, XPath xPath)
 {
     this.elementFinder = elementFinder;
     this.textMatcher   = textMatcher;
     this.xPath         = xPath;
 }
Beispiel #13
0
 public SectionFinder(ElementFinder elementFinder, TextMatcher textMatcher)
 {
     this.elementFinder = elementFinder;
     this.textMatcher   = textMatcher;
 }