static void Main(string[] args) { Program demo = new Program(); demo.StartMSPaint(); demo.DemoExists(); demo.DemoFindAll(); SikuliAction.Click(demo.pattern); SikuliAction.DoubleClick(demo.extraPattern); SikuliAction.RightClick(demo.pattern); SikuliAction.Hover(demo.extraPattern); SikuliAction.DragAndDrop(demo.extraPattern, demo.pattern); demo.KillMSPaint(); demo.StartMSPaint(2); SikuliAction.Wait(demo.extraPattern, 3); demo.KillMSPaint(2); SikuliAction.WaitVanish(demo.extraPattern, 3); Console.ReadLine(); }
public void TestWaitDefaultNegative() { try { StartMSPaint(3); SikuliAction.Wait(extraPattern, 2); Report.Error("Nope! It's appeared, but it shouldn't..."); } catch { Report.Pass("Yep! It's not appeared as expected..."); } }
public void TestWaitDefaultPositive() { try { StartMSPaint(2); SikuliAction.Wait(extraPattern, 3); Report.Pass("Yep! It's appeared..."); } catch { Report.Error("Nope! It's NOT appeared..."); } }