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();
 }
 public FrameFinder(IWebDriver selenium, ElementFinder elementFinder, XPath xPath)
 {
     this.selenium = selenium;
     this.elementFinder = elementFinder;
     this.xPath = xPath;
 }
 public FieldFinder(ElementFinder elementFinder, XPath xPath)
 {
     this.elementFinder = elementFinder;
     this.xPath = xPath;
 }
 public ButtonFinder(ElementFinder elementFinder, TextMatcher textMatcher, XPath xPath)
 {
     this.elementFinder = elementFinder;
     this.textMatcher = textMatcher;
     this.xPath = xPath;
 }
 public SectionFinder(ElementFinder elementFinder, TextMatcher textMatcher)
 {
     this.elementFinder = elementFinder;
     this.textMatcher = textMatcher;
 }