[error] OkButton.png looks like a file, but can't be found on the disk. Assume it's text.

Asked by venkat

I am working on Ubuntu12.04, with sikuli version: Sikuli-X-1.0rc3 (r905)-linux-x86_64
I just implemented to test the environment setup as follows,

public class SikuliSampleTest {

 private static Pattern okButton;

 public static void main(String[] args) throws AWTException {
  // TODO Auto-generated method stub
  SikuliScript script;
  Screen scr = new Screen();
  try{
   script = new SikuliScript();
   script.openApp(LoadDataProperties.get("Atlas.path"));
   scr.click("OkButton.png");

  }catch(FindFailed e){
   e.getMessage();
  }

 }

}

The image file is located at the same directory.

I request you to please help me to resolve this, this will be great help.
Thanks in advance...

Thanks,
venkat.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Hi,

Please verify that your path is set to the same directory where the image is. By default the path should be the same as your source code (the <testName>.sikuli). But just to make sure, do:

getBundlePath()

and if your file is not in the resulting directory, do:

setBundlePath()

Eugene

Can you help with this problem?

Provide an answer of your own, or ask venkat for more information if necessary.

To post a message you must log in.