Need help in converting a sikuli script to Java

Asked by srijith

I'm trying to automate a website which has a flash part.
I'm using Selenium Webdriver and for flash I'm planning to use Sikuli.
So I'm using Java in Eclipse and I'm using Webdriver to get till flash page.
Once I reach flash Page I should call Sikuli script to automate the flash part.
This is the tutorial I went through
http://doc.sikuli.org/faq/030-java-dev.html#how-to-use-sikuli-script-in-your-java-programs

My Question is, Is there a way to convert a script written in sikuli IDE to Java code ? How do I do it?
Or do I need to write the Java code manually ? Please help on this . I have imported the sikuli .Jar file to eclipse and
I'm all set.

I'm only asking this because I feel that writing script in Sikuli IDE and then exporting as Java is much easier than writing manually in Java. Please let me know if there is any other easy way to write the code.
Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

No, sorry, there is no helper currently available to "convert" a Sikuli script into Java code.

You have to transpose your code yourself.

Or you try to run your prepared scripts using the class ScriptRunner.

Revision history for this message
srijith (srijithbhandary) said :
#2

Thanks RaiMan, that solved my question.