internal SeleniumPool(SeleniumPoolOptions options) { this._address = options.SeleniumServerAddress; this.MINSESSIONS = options.MinSessions.Value; this.MAXSESSIONS = options.MaxSessions.Value; if (this._address == null) { throw new ArgumentException("SeleniumServerAddress"); } if (this.MINSESSIONS == null) { throw new ArgumentException("MinSessions"); } if (this.MAXSESSIONS == null) { throw new ArgumentException("MaxSessions"); } this._browsers = new List <IntDisposableBrowser>(this.MAXSESSIONS); this._desiredCapabilities = options.DesiredCapabilities ?? DesiredCapabilities.Firefox(); init(); }
public static SeleniumPool GetPool(SeleniumPoolOptions options) { return(new SeleniumPool(options)); }