コード例 #1
0
ファイル: SeleniumWebDriver.cs プロジェクト: asir22/Coypu
 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();
 }
コード例 #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();
 }
コード例 #3
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();
 }
コード例 #4
0
ファイル: SeleniumWebDriver.cs プロジェクト: msokol/coypu
 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();
 }
コード例 #5
0
ファイル: SeleniumWebDriver.cs プロジェクト: bszypelow/coypu
 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();
 }