package com.sikulix.test; import org.sikuli.script.FindFailed; import org.sikuli.script.Screen; import org.testng.annotations.Test; public class CalculatorTest { @Test public void calculatorTest(){ Screen sc = new Screen(); String location = "J:/Softwares/SikuliX/SikuliXImages/"; try { //Open the calculator Application sc.click(location + "CalculatorApp.PNG"); sc.click(location + "1.PNG"); sc.click(location + "plus.PNG"); sc.click(location + "8.PNG"); sc.click(location + "minus.PNG"); sc.click(location + "5.PNG"); sc.click(location + "equal.PNG"); } catch (FindFailed e) { e.printStackTrace(); } } }
No comments:
Post a Comment