/// <summary> /// Creates a Button element /// </summary> /// <returns></returns> public ElementBuilder CreateButton() { _innerElement = new TestBasicAutomationElement { ControlType = FlaUI.Core.Definitions.ControlType.Button }; _element = new Button(_innerElement); return(this); }
/// <summary> /// Creates a Pane element /// </summary> /// <returns></returns> public ElementBuilder CreatePane() { _innerElement = new TestBasicAutomationElement() { ControlType = FlaUI.Core.Definitions.ControlType.Pane }; _element = new MenuItem(_innerElement); return(this); }
/// <summary> /// Creates a TextBox element /// </summary> /// <returns></returns> public ElementBuilder CreateTextBox() { _innerElement = new TestBasicAutomationElement { ControlType = FlaUI.Core.Definitions.ControlType.Text }; _innerElement.SetPropertyValue(AutomationObjectIds.IsPasswordProperty.Id, false); _element = new TextBox(_innerElement); return(this); }
public TestAutomationElementPatternValues(TestBasicAutomationElement basicAutomationElement) : base(basicAutomationElement) { }