示例#1
0
文件: Session.cs 项目: glikoz/Coypu
 public Session(Driver driver, RobustWrapper robustWrapper)
 {
     this.robustWrapper = robustWrapper;
     this.driver = driver;
     clicker = new Clicker(driver);
     urlBuilder = new UrlBuilder();
 }
示例#2
0
 internal BrowserSession(
     SessionConfiguration sessionConfiguration,
     DriverFactory driverFactory,
     TimingStrategy timingStrategy,
     Waiter waiter,
     UrlBuilder urlBuilder,
     DisambiguationStrategy disambiguationStrategy,
     RestrictedResourceDownloader restrictedResourceDownloader
     )
     : base(sessionConfiguration,
        null,
        driverFactory.NewWebDriver(sessionConfiguration.Driver, sessionConfiguration.Browser),
        timingStrategy,
        waiter,
        urlBuilder,
        disambiguationStrategy)
 {
     this.restrictedResourceDownloader = restrictedResourceDownloader;
 }
示例#3
0
 internal BrowserSession(DriverFactory driver, SessionConfiguration SessionConfiguration, RobustWrapper robustWrapper, Waiter waiter, RestrictedResourceDownloader restrictedResourceDownloader, UrlBuilder urlBuilder)
     : base(SessionConfiguration, null, driver.NewWebDriver(SessionConfiguration.Driver, SessionConfiguration.Browser), robustWrapper, waiter, urlBuilder)
 {
     this.restrictedResourceDownloader = restrictedResourceDownloader;
 }
示例#4
0
 internal BrowserWindow(SessionConfiguration SessionConfiguration, ElementFinder elementFinder, Driver driver, RobustWrapper robustWrapper, Waiter waiter, UrlBuilder urlBuilder)
     : base(SessionConfiguration, elementFinder, driver, robustWrapper, waiter, urlBuilder)
 {
 }
示例#5
0
 internal BrowserWindow(SessionConfiguration SessionConfiguration, ElementFinder elementFinder, Driver driver, TimingStrategy timingStrategy, Waiter waiter, UrlBuilder urlBuilder, DisambiguationStrategy disambiguationStrategy) 
     : base(SessionConfiguration, elementFinder, driver, timingStrategy, waiter, urlBuilder, disambiguationStrategy)
 {
 }
 internal RobustWindowScope(Driver driver, SessionConfiguration SessionConfiguration, RobustWrapper robustWrapper, Waiter waiter, UrlBuilder urlBuilder, Options options, WindowFinder windowFinder)
     : base(SessionConfiguration,windowFinder,driver, robustWrapper, waiter, urlBuilder)
 {
     this.options = options;
 }