internal static string?GetTextContentValue(this BindableObject bindableObject)
        {
            var localValueEntries = bindableObject.GetLocalValueEntries().ToArray();

            return(localValueEntries.FirstOrDefault(x => x.Property.PropertyName == "Text")?.Value?.ToString() ??
                   localValueEntries.FirstOrDefault(x => x.Property.PropertyName == "FormattedText")?.Value?.ToString());
        }
 internal static bool HasAutomationIdValueWith(this BindableObject bindableObject, string automationId) =>
 bindableObject.GetLocalValueEntries()
 .Any(x => x.Property.PropertyName == "AutomationId" && (string)x.Value == automationId);
 internal static bool HasTextValueWith(this BindableObject bindableObject, string text) =>
 bindableObject.GetLocalValueEntries()
 .Any(x => x.Property.PropertyName == "Text" && (string)x.Value == text);