/// <summary>
/// Finds a child element matching the given mechanism and value.
/// </summary>
/// <param name="mechanism">The mechanism by which to find the element.</param>
/// <param name="value">The value to use to search for the element.</param>
/// <returns>The first <see cref="IWebElement"/> matching the given criteria.</returns>
protected IWebElement FindElement(string mechanism, string value)
{
Dictionary <string, object> parameters = new Dictionary <string, object>();
parameters.Add("id", elementId);
parameters.Add("using", mechanism);
parameters.Add("value", value);
Response commandResponse = Execute(DriverCommand.FindChildElement, parameters);
return(driver.GetElementFromResponse(commandResponse));
}