I am trying to automate the opening of notepad using Sikuli in windows OS.
Source Code :
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;
import org.testng.annotations.Test;
public class Notepad {
Screen s=new Screen();
@Test
public void opennotepad() throws FindFailed{
Pattern notepadIcon = new Pattern("src/icon.png");
s.click(notepadIcon);
}
}
I am getting the following error:
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. [error] ResourceLoaderBasic: checkLibsDir: libs dir is not on system path: C:\Users\Salini.LS\Desktop\Automation\Automation\JAR Files\libs [action] ResourceLoaderBasic: checkLibsDir: Please wait! Trying to add it to user's path [info] runcmd: reg QUERY HKCU [info] runcmd: reg QUERY HKEY_CURRENT_USER\Environment /v PATH [error] ResourceLoaderBasic: checkLibsDir: Logout and Login again! (Since libs folder is in user's path, but not activated) [error] Terminating SikuliX after a fatal error! Sorry, but it makes no sense to continue!
User contributions licensed under CC BY-SA 3.0