Пример #1
0
 public SeleneCollection _With_(_SeleneSettings_ config)
 {
     return(new SeleneCollection(
                this.locator,
                config
                ));
 }
Пример #2
0
 _SeleneSettings_ _SupportsCopyWithOverride_ <_SeleneSettings_> .With(
     _SeleneSettings_ overrides
     )
 {
     return(new Configuration(
                refDriver: overrides.Driver == null
         ? this._refDriver
         : new Ref <IWebDriver>(overrides.Driver),
                refTimeout: overrides.Timeout == null
         ? this._refTimeout
         : new Ref <double?>(overrides.Timeout),
                refPollDuringWaits: overrides.PollDuringWaits == null
         ? this._refPollDuringWaits
         : new Ref <double?>(overrides.PollDuringWaits),
                refSetValueByJs: overrides.SetValueByJs == null
         ? this._refSetValueByJs
         : new Ref <bool?>(overrides.SetValueByJs),
                refTypeByJs: overrides.TypeByJs == null
         ? this._refTypeByJs
         : new Ref <bool?>(overrides.TypeByJs),
                refClickByJs: overrides.ClickByJs == null
         ? this._refClickByJs
         : new Ref <bool?>(overrides.ClickByJs),
                refWaitByJsForNotOverlapped: overrides.WaitByJsForNotOverlapped == null
         ? this._refWaitByJsForNotOverlapped
         : new Ref <bool?>(overrides.WaitByJsForNotOverlapped)
                ));
 }
Пример #3
0
 _SeleneSettings_ _SupportsCopyWithOverride_ <_SeleneSettings_> .With(
     _SeleneSettings_ overrides
     )
 {
     return(new Configuration(
                refDriver: overrides.Driver == null
         ? this._refDriver
         : new Ref <IWebDriver>(overrides.Driver),
                refTimeout: overrides.Timeout == null
         ? this._refTimeout
         : new Ref <double?>(overrides.Timeout),
                refPollDuringWaits: overrides.PollDuringWaits == null
         ? this._refPollDuringWaits
         : new Ref <double?>(overrides.PollDuringWaits),
                refSetValueByJs: overrides.SetValueByJs == null
         ? this._refSetValueByJs
         : new Ref <bool?>(overrides.SetValueByJs),
                refTypeByJs: overrides.TypeByJs == null
         ? this._refTypeByJs
         : new Ref <bool?>(overrides.TypeByJs),
                refClickByJs: overrides.ClickByJs == null
         ? this._refClickByJs
         : new Ref <bool?>(overrides.ClickByJs),
                refWaitForNoOverlapFoundByJs: overrides.WaitForNoOverlapFoundByJs == null
         ? this._refWaitForNoOverlapFoundByJs
         : new Ref <bool?>(overrides.WaitForNoOverlapFoundByJs),
                _ref_HookWaitAction: overrides._HookWaitAction == null
         ? this._ref_HookWaitAction
         : new Ref <Action <object, Func <string>, Action> >(overrides._HookWaitAction)
                ));
 }
Пример #4
0
 public SeleneElement _With_(_SeleneSettings_ config)
 {
     return(new SeleneElement(
                this.locator,
                config
                ));
 }
Пример #5
0
 internal SeleneElement(
     SeleneLocator <IWebElement> locator,
     _SeleneSettings_ config
     )
 {
     this.locator = locator;
     this.Config  = config;
 }
Пример #6
0
 internal SeleneCollection(
     SeleneLocator <ReadOnlyCollection <IWebElement> > locator,
     _SeleneSettings_ config
     )
 {
     this.locator = locator;
     this.Config  = config;
 }
Пример #7
0
 public SCollectionFilteredWebElementsCollectionSLocator(
     Condition <SeleneElement> condition,
     SeleneCollection context,
     _SeleneSettings_ config
     )
 {
     this.condition = condition;
     this.context   = context;
     this.config    = config;
 }
Пример #8
0
 internal SeleneCollection(
     IList <IWebElement> elementsListToWrap,
     _SeleneSettings_ config
     )
     : this(
         new WrappedWebElementsCollectionSLocator(elementsListToWrap),
         config
         )
 {
 }
Пример #9
0
 internal SeleneElement(
     By locator,
     _SeleneSettings_ config
     )
     : this(
         new SearchContextWebElementSLocator(
             locator,
             config
             ),
         config
         )
 {
 }
Пример #10
0
 internal SeleneCollection(
     By locator,
     _SeleneSettings_ config
     )
     : this(
         new SearchContextWebElementsCollectionSLocator(
             locator,
             config
             ),
         config
         )
 {
 }
Пример #11
0
 public Browser With(_SeleneSettings_ config)
 {
     return(new Browser(this.Config.With(config)));
 }
Пример #12
0
 internal SeleneElement(IWebElement elementToWrap, _SeleneSettings_ config)
     : this(new WrappedWebElementSLocator(elementToWrap), config)
 {
 }
Пример #13
0
        IWebElement SeleneContext.FindElement(By by)
        {
            _SeleneSettings_ self = this;

            return(self.Driver.FindElement(by));
        }
Пример #14
0
 internal SeleneDriver(IWebDriverSource source, _SeleneSettings_ config)
 {
     this.source = source;
     this.config = config;
 }
Пример #15
0
 internal SeleneDriver(_SeleneSettings_ config)
     : this(new ConfigDriverSource(config), config)
 {
 }
Пример #16
0
 public ConfigDriverSource(_SeleneSettings_ config)
 {
     this.config = config;
 }
Пример #17
0
 public SeleneDriver _With_(_SeleneSettings_ config)
 {
     return(new SeleneDriver(
                config
                ));
 }
Пример #18
0
 public Browser(_SeleneSettings_ config)
 {
     this.Config = config;
 }
Пример #19
0
        ReadOnlyCollection <IWebElement> SeleneContext.FindElements(By by)
        {
            _SeleneSettings_ self = this;

            return(self.Driver.FindElements(by));
        }