private IElementSearchConfiguration GetSearchConfigurationByAttributes(MemberInfo pageMember, IElement parentElement)
        {
            var    pageMemberAttributes = pageMember.GetCustomAttributes(false);
            FindBy locator = GetLocator(pageMemberAttributes);

            if (locator != null)
            {
                FilterBy[] filters = GetFilters(pageMemberAttributes);
                IElementSearchConfiguration searchConfiguration =
                    DependencyManager.Kernel.Get <IElementSearchConfiguration>(DependencyManager.Tool.ToString());
                searchConfiguration.FindBy(locator).FilterBy(filters).From(parentElement);
                return(searchConfiguration);
            }
            return(null);
        }
 public FindByAttribute(string how, String value)
 {
     FindBy = new FindBy(how, value);
 }
 public FindByAttribute(string how, String value)
 {
     FindBy = new FindBy(how, value);
 }
 public IElementSearchConfiguration FindBy(FindBy locator)
 {
     Locator = locator;
     return(this);
 }