我在eclipse中第一次使用sikuli。我将sikuli脚本jar文件导入到我的项目中,并使用了屏幕和模式类。
我得到低于错误
[error] ResourceLoaderBasic: checkLibsDir: libs dir is not on system path: D:libs
[action] ResourceLoaderBasic: checkLibsDir: Please wait! Trying to add it to user's path
[info] runcmd: reg QUERY HKCU
[info] runcmd: reg QUERY HKEY_CURRENT_USEREnvironment /v PATH
[error] ResourceLoaderBasic: checkLibsDir: Logout and Login again! (Since libs folder is in user's path, but not activated)
[error] Terminating SikuliX after a fatal error! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
要在Eclipse中使用Sikuli,导入Jar是不够的。如果您想访问Sikuli API,您可以使用以下依赖项:
<dependencies>
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixapi</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
只要把它和你正在使用的任何Selenium版本一起放入你的maven pom中,就可以了。