Пример #1
0
        public MessageBoxWindow(AutomationWrapper window)
        {
            if (window == null)
                throw new ArgumentNullException("window");

            Window = window;
        }
Пример #2
0
 public DockWrapper(AutomationWrapper automationWrapper, DockPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public TransformWrapper(AutomationWrapper automationWrapper, TransformPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Пример #4
0
 public GridWrapper(AutomationWrapper automationWrapper, GridPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Пример #5
0
 public EventWrapper(AutomationWrapper automationWrapper, AutomationEvent automationEvent, AutomationEventHandler eventHandler)
 {
     _automationWrapper = automationWrapper;
     AutomationEvent    = automationEvent;
     _eventHandler      = eventHandler;
 }
 public MultipleViewWrapper(AutomationWrapper automationWrapper, MultipleViewPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public SelectionWrapper(AutomationWrapper automationWrapper, SelectionPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public ValueWrapper(AutomationWrapper automationWrapper, ValuePattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Пример #9
0
 public ExpandCollapseWrapper(AutomationWrapper automationWrapper, ExpandCollapsePattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Пример #10
0
 public FindWindow(AutomationWrapper window)
 {
     Window = window;
 }
Пример #11
0
        private void SetCheckboxState(AutomationWrapper control, bool value)
        {
            var togglePattern = control.Toggle;

            if (togglePattern.ToggleState != (value ? ToggleState.On : ToggleState.Off))
                togglePattern.Toggle();
        }
Пример #12
0
 private bool GetCheckboxState(AutomationWrapper control)
 {
     return control.Toggle.ToggleState == ToggleState.On;
 }
Пример #13
0
        protected virtual void TestFixtureSetUp()
        {
            string installationPath = GetInstallationPath();

            _previousCurrentDirectory = Environment.CurrentDirectory;
            Environment.CurrentDirectory = installationPath;

            Application = new IsolatedApplicationRunner();

            Application.Start(GetArguments());

            MainWindow = AutomationWrapper.FromHandle(Application.Handle);
            MainMenu = MainWindow.Children.Single(p => p.ControlType == ControlType.MenuBar);

            // Because we're accessing the application through automation,
            // the requery mechanism doesn't work anymore (it depends on mouse
            // and keyboard actions to be triggered). To work around this, Net IDE
            // exposes a Button with the Guid below as the name of the control.
            // When we click this, a require is fired immediately.

            var handle = InteropUtil.FindWindowInProcess(
                Process.GetCurrentProcess(),
                "89db2dd3-10f4-43f7-a09c-8b1d1038f137"
            );
            _requeryElement = AutomationWrapper.FromHandle(handle);
        }
Пример #14
0
 public TextWrapper(AutomationWrapper automationWrapper, TextPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Пример #15
0
 public WindowWrapper(AutomationWrapper automationWrapper, WindowPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public InvokeWrapper(AutomationWrapper automationWrapper, InvokePattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Пример #17
0
 public VirtualizedItemWrapper(AutomationWrapper automationWrapper, VirtualizedItemPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public TableItemWrapper(AutomationWrapper automationWrapper, GridItemPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public ToggleWrapper(AutomationWrapper automationWrapper, TogglePattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Пример #20
0
 public ScrollItemWrapper(AutomationWrapper automationWrapper, ScrollItemPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public SynchronizedInputWrapper(AutomationWrapper automationWrapper, SynchronizedInputPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public TableItemWrapper(AutomationWrapper automationWrapper, GridItemPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Пример #23
0
 protected PatternWrapper(AutomationWrapper automationWrapper, T pattern)
 {
     AutomationWrapper = automationWrapper;
     Pattern           = pattern;
 }