Esempio n. 1
0
        public Window(string caption)
        {
            var cdef = new ControlLocatorDef <IFindControl>(30, 100, () => new FindByCaption(caption)
                                                            );

            SystemUnderTest(cdef);
        }
Esempio n. 2
0
 public override void Click(bool rightButton = false, int relativeX = 0, int relativeY = 0)
 {
     var cdef = new ControlLocatorDef<FindControl>(
                                         () => new FromHandle(SystemUnderTestHandle),
                                         () => new ClickNonWindowControlByCaption(new[] { SelectedItems[0] })
             );
     cdef.Play();
 }
Esempio n. 3
0
        public virtual void Click(String[] menuByCaption)
        {
            var f = new ControlLocatorDef <FindControl>(
                () => new FromHandle(SystemUnderTestHandle),
                () => new ClickNonWindowControlByCaption(menuByCaption)
                );

            f.Play();
        }
Esempio n. 4
0
        public IControlLocatorDef GetControlDef(string[] captions)
        {
            var cdef = new ControlLocatorDef <IFindControl>(() => new FromHandle(_testControl.SystemUnderTestHandle),
                                                            () => new RightClickMouse(),
                                                            () => new Wait(100),
                                                            () => new SendKeyStrokes("{DOWN}", true),
                                                            () => new Wait(100),
                                                            () => new FindWindowByMousePosition(),
                                                            () => new Wait(100),
                                                            () => new ClickNonWindowControlByCaption(captions)
                                                            );

            return(cdef);
        }