本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
benladeng5225 - duanfei
- Anmin
- wddpwzzhao123
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
wy_19921005 - benladeng5225
- vipbooks
- kaizi1992
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- e_e
- jh108020
- ganxueyun
- Xeden
- xyuma
- wangchen.ily
- zhanjia
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- 青否云后端云
- javashop
- lzyfn123
- sunj
- yeluowuhen
- ajinn
- lerf
- lemonhandsome
- chenqisdfx
- xiaoxinye
- lyndon.lin
- flashsing123
- bosschen
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
- hudiemeng870329
- mft8899
最新文章列表
[sikuli]-设置环境,图片,OS等
General Settings and Access to Environment Information
Sikuli Level
Sikuli internally uses the class Settings to store globally used settings. Publicly available attributes may be accessed by u ...
[sikuli]-事件监听器
Listening to Global Hotkeys
Sikuli can listen to global hotkeys that you register with Env.addHotkey and call the corresponding handler (sikuli functions) when the user presses the hotkeys.
New ...
[sikuli]-sikuli与用户的交互
popup(text[, title])
Display a dialog box with an OK button and text as the message. The script then waits for the user to click the OK button.
Parameters:
text – text to be dis ...
[sikuli]-控制你的应用程序和窗口
Here we talk about opening or closing other applications, switching to them (bring their windows to front) or accessing an application’s windows.
The three global functions openApp(), switchApp() ...
[sikuli]-python脚本的一个简单例子
def setUp(self):
openApp("/Applications/jEdit.app")
wait(, 20000)
close = ()
# if find(close):
# click(close)
def tearDown(self):
closeApp("jEdit.app")
u ...
[sikuli]-怎样在Java程序中运行你的sikuli脚本
sikuli的核心内容是使用java进行编写的,这意味着你可以在java程序中调用它们作为你的一个库。
1.在您安装完sikuliIDE后,请在sikuli安装目录下找到sikuli-script.jar文件
* Windows, Linux: Sikuli-IDE/sikuli-script.jar
* Mac OS X: Sikuli-IDE.app/Con ...
[sikuli]-怎样为GUI创建单元测试脚本
sikuli支持junit单元测试,在IDE里(windows/linux)你可以使用ctrl+u把他们呼出来
sikuli IDE力图最小话您所付出的努力,所以在IDE里,一个python的类默认继承了Junit.framework.TestCase类用于你做单元测试脚本
典型的单元测试脚本应该包含setup、teardown以及一下前置的方法:
下面给出脚本最基本的结构:
1def ...
[sikuli]-有关于sikuli的一点解释
你能使用sikuli做什么,在什么地方可以使用?
*如果你使用java来做的话,你可以使用java swing来生成gui,然后以同样的方式使用sikuli
*如果你使用python,你也可能使用python自带的一些模块来编写脚本,以为sikuli本身使用的就是纯的Python库
*如果你使用C,那么狠不幸,你不能使用sikuli
我可以在sikuli中使用循环么?
*当然,si ...
[sikuli]-设置窗口大小
我们可以拖拽窗口的右下角来改变窗口的大小,那么我们就必须知道当前窗口的坐标
1def resizeApp(app, dx, dy):
2 switchApp(app)
3 corner = find(Pattern(
).targetOffset(3,14))
4
5 drop_point = corner.getTarget().offset( ...
[sikuli]-拖拽动作dragDrop
样例图片:
t = find
(
).right().find
(
)
下面使用图片Alert volume作为目标进行拖拽:
dragDrop
(t,
)
下面使用坐标进行拖拽
dragDrop
(t, [t.x - 200
, t.y])