Esempio n. 1
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();
 }
Esempio n. 2
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();
 }
Esempio n. 3
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();
 }