How to export Sikuli scripts to java?

♀尐吖头ヾ 提交于 2019-12-11 16:48:13

问题


I am new to automation and have to use Sikuli, can you all tell me how to export Sikuli script in java also is it possible to integrate those scripts with Selenium....

Thanks in advance.....


回答1:


"export" scripts to Java is not possible in this sense, since Sikuli scripts are written in Python scripting language and the scripts itself are run using the Jython interpreter (Java base implementation of Python language).

But since the the essential Sikuli features are implemented using Java, you might transcript/translate a script to Java code, since the Sikuli functions are nearly identical on the Python API level and the Java API level.

But if you have more complex Sikuli Scripts, that you want to run from Java code, there are options to do that:

  • run the script like from command line, but in a subprocess
  • run the script using Sikuli's ScriptRunner


来源:https://stackoverflow.com/questions/10203381/how-to-export-sikuli-scripts-to-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!