﻿using System.Collections.ObjectModel;

namespace OpenQA.Selenium.Appium.Interfaces
{
    internal interface IFindByAccessibilityId
    {
        /// <summary>
        /// Finds the first of elements that match the Accessibility Id selector supplied
        /// </summary>
        /// <param name="selector">an Accessibility Id selector</param>
        /// <returns>IWebElement object so that you can interact that object</returns>
        IWebElement FindElementByAccessibilityId(string selector);

        /// <summary>
        /// Finds a list of elements that match the Accessibility Id selector supplied
        /// </summary>
        /// <param name="selector">an Accessibility Id selector</param>
        /// <returns>IWebElement object so that you can interact that object</returns>
        ReadOnlyCollection<IWebElement> FindElementsByAccessibilityId(string selector);
    }
}

Fix FindByAccessibilityId bug where you were not to find a subelement of an element in a dom
Fix FindByAccessibilityId bug where you were not to find a subelement of an element in a dom
