Sha256: 72618443c6261edbc784c717814adb8adc72b15b951f25ce200ebd9e4a186050

Contents?: true

Size: 837 Bytes

Versions: 10

Compression:

Stored size: 837 Bytes

Contents

using System.Windows.Automation;

namespace RAutomation.UIA.Extensions
{
    public static class Property
    {
        public static Condition Condition(this ControlType controlType)
        {
            return new PropertyCondition(AutomationElement.ControlTypeProperty, controlType);
        }

        public static Condition TrueCondition(this AutomationProperty property)
        {
            return new PropertyCondition(property, true);
        }

        public static Condition Is(this AutomationProperty property, object value)
        {
            return new PropertyCondition(property, value);
        }

        public static bool In(this AutomationProperty property, AutomationElement element)
        {
            return (bool) element.GetCurrentPropertyValue(property);
        }
    }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rautomation-1.1.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-1.0.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-0.17.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-0.16.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-0.15.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-0.14.1 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-0.14.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-0.13.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-0.12.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs
rautomation-0.11.0 ext/UiaDll/RAutomation.UIA/Extensions/Property.cs