https://github.com/ryanninodizon/sikulix-ui-automation-test-project
SikuliX test project for UI automation.
https://github.com/ryanninodizon/sikulix-ui-automation-test-project
automation sikulix uitesting
Last synced: 8 months ago
JSON representation
SikuliX test project for UI automation.
- Host: GitHub
- URL: https://github.com/ryanninodizon/sikulix-ui-automation-test-project
- Owner: ryanninodizon
- Created: 2021-08-11T04:46:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T08:53:49.000Z (about 1 year ago)
- Last Synced: 2024-08-09T10:15:15.104Z (about 1 year ago)
- Topics: automation, sikulix, uitesting
- Language: Java
- Homepage:
- Size: 234 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SikuliX UI automation test project
This project is simply for testing and I have used the Dragonary game as my main example. But it can also work for other applications.
You can check this file for a sample usage.
> dragonaryauto/src/test/java/dragonary/dragonaryauto/DragonAuto.java```java
import org.apache.tools.ant.types.resources.comparators.Exists;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;public class DragonAuto {
public static void main(String[] args) {
DragonAuto object = new DragonAuto();
object.Play();
}
private synchronized void Play() {
Screen screen = new Screen();
String imagePath = System.getProperty("user.dir") + "\\";
Pattern missionButton = new Pattern(imagePath + "/images/missions_btn");
while(true) {
try {
screen.click(missionButton);
} catch (FindFailed e) {
e.printStackTrace();
}
}
}
}
```**Sikuli X dependency should be added:**
> dragonaryauto/pom.xml```xml
com.sikulix
sikulixapi
2.0.5```
# See these videos to see how I created and utilized it.
> I am still using Eclipse IDE in the video but I think this project can still work with VS code.- [AUTOPLAY using SikuliX Project (Part 1)](https://youtu.be/TUUWTE534wE).
- [AUTOPLAY using SikuliX Project (Part 2)](https://youtu.be/DvJos-TVoDk).