Openn Login and check if image exists in Desktop application
Hello,
I'm a beginner in automation and I try to use Sikuli for automate a desktop application.
I create a new project in JAVA with Eclipse, i added external jar in JAVA Build Path : sikuli-
I want to open a Desktop application and fill the login and password and after that check if a picture exist in the application.
maestro.PNG is the screenshot of my icon application and i don't know how to do next steps.
package com.example.tests;
import java.awt.Desktop;
import java.io.File;
import org.sikuli.
import org.sikuli.
import org.sikuli.
import org.sikuli.
import org.sikuli.
import org.sikuli.
import org.sikuli.
public class maestro {
public static void main(String[] args) {
ScreenRegion s = new DesktopScreenRe
Target tg=new ImageTarget(new File("C:
ScreenRegion sr= s.find(tg);
System.
Mouse mouse=new DesktopMouse();
}
}
When i execute this code i get :
SLF4J: Failed to load class "org.slf4j.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://
Exception in thread "main" java.lang.
at com.example.
Can you give me information about that ?
Thank you
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 yaya for more information if necessary.