/// <summary> /// Initializes a new instance of the <see cref="DefaultElementLocator" /> class. /// </summary> /// <param name="searchContext">The search context.</param> /// <param name="attributesHandler">The attributes handler.</param> public DefaultElementLocator(ISearchContext searchContext, AttributesHandler attributesHandler) { this.searchContext = searchContext; shouldCache = attributesHandler.ShouldCache(); by = attributesHandler.BuildBy(); }
/// <summary> /// Initializes a new instance of the <see cref="AjaxElementLocator" /> class. /// </summary> /// <param name="searchContext">The search context.</param> /// <param name="attributesHandler">The attributes handler.</param> public AjaxElementLocator(ISearchContext searchContext, AttributesHandler attributesHandler) : base(searchContext, attributesHandler) { RestoreDefaults(); }