public Window(string caption) { var cdef = new ControlLocatorDef <IFindControl>(30, 100, () => new FindByCaption(caption) ); SystemUnderTest(cdef); }
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(); }
public virtual void Click(String[] menuByCaption) { var f = new ControlLocatorDef <FindControl>( () => new FromHandle(SystemUnderTestHandle), () => new ClickNonWindowControlByCaption(menuByCaption) ); f.Play(); }
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); }