/// <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();
 }
Beispiel #2
0
 /// <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();
 }