C# Class Selenol.SelectorAttributes.Interceptors.BasePropertyInterceptor

The base selector interceptor. It intercepts property getter and select elements by selector from BaseSelectorAttribute. Can cache the result if need.
Inheritance: IInterceptor
Exibir arquivo Open project: pbakshy/Selenol

Public Methods

Method Description
Intercept ( IInvocation invocation ) : void

The intercept.

Protected Methods

Method Description
SelectPropertyValue ( Type propertyType, object context, By selector ) : object

Selects value for the proxied property.

Private Methods

Method Description
UseCacheIfNeed ( PropertyInfo propertyInfo, object context, BaseSelectorAttribute selectorAttribute ) : object

Method Details

Intercept() public method

The intercept.
public Intercept ( IInvocation invocation ) : void
invocation IInvocation The invocation.
return void

SelectPropertyValue() protected abstract method

Selects value for the proxied property.
protected abstract SelectPropertyValue ( Type propertyType, object context, By selector ) : object
propertyType System.Type The property type.
context object The invocation context, can be page or control.
selector OpenQA.Selenium.By The selector.
return object