Exemple #1
0
        public MessageBoxWindow(AutomationWrapper window)
        {
            if (window == null)
                throw new ArgumentNullException("window");

            Window = window;
        }
Exemple #2
0
 public DockWrapper(AutomationWrapper automationWrapper, DockPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public TransformWrapper(AutomationWrapper automationWrapper, TransformPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Exemple #4
0
 public GridWrapper(AutomationWrapper automationWrapper, GridPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Exemple #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)
 {
 }
Exemple #9
0
 public ExpandCollapseWrapper(AutomationWrapper automationWrapper, ExpandCollapsePattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Exemple #10
0
 public FindWindow(AutomationWrapper window)
 {
     Window = window;
 }
Exemple #11
0
        private void SetCheckboxState(AutomationWrapper control, bool value)
        {
            var togglePattern = control.Toggle;

            if (togglePattern.ToggleState != (value ? ToggleState.On : ToggleState.Off))
                togglePattern.Toggle();
        }
Exemple #12
0
 private bool GetCheckboxState(AutomationWrapper control)
 {
     return control.Toggle.ToggleState == ToggleState.On;
 }
Exemple #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);
        }
Exemple #14
0
 public TextWrapper(AutomationWrapper automationWrapper, TextPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Exemple #15
0
 public WindowWrapper(AutomationWrapper automationWrapper, WindowPattern pattern)
     : base(automationWrapper, pattern)
 {
 }
 public InvokeWrapper(AutomationWrapper automationWrapper, InvokePattern pattern)
     : base(automationWrapper, pattern)
 {
 }
Exemple #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)
 {
 }
Exemple #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)
 {
 }
Exemple #23
0
 protected PatternWrapper(AutomationWrapper automationWrapper, T pattern)
 {
     AutomationWrapper = automationWrapper;
     Pattern           = pattern;
 }