- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我第一次在 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_USER\Environment /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 中即可。
关于java - "Fatal error"在 Sikuli 中,libs 目录不在系统路径上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37116191/
我正在使用Sikuli (sikulixapi-1.1.0)。 我有 2 个显示器。当我使用主显示器时,一切正常。当我也使用第二个显示器时,它不起作用。 我在第二个显示器上截取了屏幕截图,并写道: S
我想使用 Sikuli 来自动化在 Mac OS X 和 Windows 上的浏览器中运行的 GUI 应用程序和 Web 应用程序。我目前的目的不是为了测试,而是为了一个团队的乏味、重复性任务的
当我打开 .sikuli 文件夹时,其中只有图像。所以我想知道是否有任何方法可以在不使用 Sikuli IDE 的情况下查看或检索 Sikuli 代码。 我可以从 .sikuli 文件夹访问它吗? 最
我正在自动化一个在 Flex 中设计的页面,所以我在 Sikuli 中编写脚本。现在我想上下移动滚动条。谁能帮帮我? 最佳答案 使用 Sikuli 滚动非常容易,我已经做到了。 使用滚轮功能 whee
所以,我是 sikuli 编码的新手,我对 python 也没有太多经验,所以对于你们中的许多人来说,这可能是一个愚蠢的问题。我的问题是我试图将程序暂停 x 秒。我已经尝试了这两种方法,但每次我都遇到
我想做的是在不同文件中用 sikuli 编写多个单元测试,然后生成报告。 我想做这样的事情: 项目 Tests_Thing1.sikuli: import unittest class Tests_T
我在本地和远程(通过 VPN)与 GUI 应用程序交互。当我在本地使用它时,大多数操作发生得非常快,而且我的 sikuli 脚本执行得很好。但是,当我远程使用它时,操作需要更长的时间才能完成。 也就是
当我的测试运行成功时,我想显示带有消息的 POP UP。请为此建议 sikuli 脚本。 最佳答案 正如@autoKarma 所建议的,您可以轻松地使用 popup() 函数。我使用 sikuli 已
我正在使用 sikuli IDE 进行自动化。在sikuli IDE中,我们可以放单行注释 作为“#”。 但是我找不到任何方法在 sikuli IDE 中放置多行(块)注释。我指的是sikuli官方文
我正在尝试在 sikuli 中自动化桌面应用程序。我正在做的事情是从现有用户复制数据并使用其中一些数据创建新用户。表单中有两个复选框。如果为现有用户勾选了该复选框,那么在创建新用户时我需要选中文本框。
我已下载 sikuli-setup.jar 并成功安装它。我可以从 GUI 运行 sikuli,但我想从 eclipse 运行 sikuli 脚本,这需要 sikuli-script.jar。请告诉我
我在 Windows 7 32 位上,安装了 Java JRE6 31 并使用 Sikuli X 1.0rc3。我想像这样使用 sikuli-script.jar 启动测试: java -jar c:
我目前正在寻找一个工具来测试网站,Sikuli 似乎很完美。然而,我的公司同时使用 Windows 和 Linux,我希望我们的脚本可以转移。 它可以工作吗?Windows 脚本适用于 Windows
我目前在 Jython 层用 Sikuli 编写了一些自动化,但我开始想知道在 Java 级别执行此操作是否更好? 脚本变得越来越重要。所以我想知道如果在 Java 层编写是否可以获得速度或稳定性?
当我运行代码时,出现以下错误。我正在使用 Selenium 网格在远程服务器上运行我的代码。虽然当我在本地机器上运行时代码工作正常。 错误是------------ `java.lang.Except
我最近正在尝试使用 Sikuli 和使用具有透明背景的图像来进行测试。 例如我们定义的 Sikuli IDE: Image_FireFox = ("FireFox.png") 现在我使用“FireFo
我正在使用 Sikuli IDE。我想知道截屏的命令是什么,以便我可以在测试结束时捕获屏幕。 像这样的东西 try : if bla bla bla: print("blablabla")
虽然我们有多个站点(如勺子)可以帮助我们进行浏览器测试,但使用 Sikuli 进行跨/多浏览器测试怎么样?有没有人试过,可以分享一下是否有效? 很多时候我们需要在不同的浏览器中测试相同的功能。例如,您
我经常在我的笔记本电脑屏幕和我的外部 24 英寸显示器之间切换,我确实注意到如果我在笔记本电脑上拍摄快照,然后如果我在连接到 24 英寸显示器的情况下运行脚本,测试将不再正常工作。如果我反过来,从 2
我正在公司全屏运行的游戏上运行 Java 的 Sikuli API。问题是 Sikuli 看到了游戏下面的层(桌面),但看不到游戏本身。就好像游戏对于 Sikuli 来说是透明的。我通过 RobotF
我是一名优秀的程序员,十分优秀!