Unable to click on Images when sikuli jar is integrated with eclipse.
Trying to automate desktop application in MAC using 'sikulixsetup-
I am trying to capture the spotlight icon and want to click on it. Below is the code snippet. My maven project hierarchy is
/Users/
Images are stored under the same project hierarchy.
>>>>>>>
package com.apttus.
import java.io.File;
import org.sikuli.
import org.sikuli.
import org.sikuli.
public class SikuliTrialSpot
public static void main(String atgs[]) throws InterruptedExce
Screen s = new Screen();
try {
System.
//Thread.
System.
System.
s.find(
s.click(
s.wait(
//s.type(null, "hello world\n", 0);
} catch (FindFailed e) {
e.printStack
}
}
}
Whenever, I try to run the code, its throwing error :
/Users/
User Directory
/Users/
FindFailed: SpotlightIcon.png: (80x52) in S(0)[0,0 1680x1050] E:Y, T:3.0
Line 2761, in file Region.java
at org.sikuli.
at org.sikuli.
at com.apttus.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Sayani Biswas for more information if necessary.