public class MyFirstSikuliTest {
public static void main(String[] args) {
App.open("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
Screen s = new Screen();
try{
s.click("How do I take the screenshot and pass the path of the PNG here?", 0);
s.wait("How do I take the screenshot and pass the path of the PNG here?");
s.type(null, "WEBSITE NAME", 0);
}
catch(FindFailed e){
e.printStackTrace();
}
}
}
How do I take the screenshot and pass the path of the PNG into click method and wait method?? kindly help.
PS: I want to open firefox browser, click in the address bar, enter a website name and click enter.
Thanks!