求sikuli python-script.jar包

Sikuli / SikuliX Documentation for version 1.1+ (2014 and later)
This document is being maintained by .
If you have any questions or ideas about this document,
you are welcome to contact him directly via the above link and the email behind.
QickStart information and other possibilities to get in contact: .
For questions regarding the functions and features of Sikuli itself, that are not answered
sufficiently in this documentation, please use the .
For hints and links of
how to get more information and help, please see the sidebar.
Documentation for previous versions
Might not be available any longer without notice or might not work properly. Feel free to post a bug in case.
The documentation for the versions up to SikuliX-1.0rc3 is still available .
How to use this document
SikuliX at the top supports scripting via SikuliX IDE (a basic script editor to load, edit, save and run scripts including the creation/organization of the needed images for your visual workflow).
Supported scripting languages:
Python (language level 2.7) supported by the .
Ruby (language level 1.9/2.0) supported by the .
JavaScript supported by the Java builtin scripting engine (Java 7: Rhino, Java 8: Nashorn).
If you are new to
programming, you can still enjoy using SikuliX to automate simple repetitive
tasks without learning one of the supported scripting languages using the SikuliX IDE.
A good start might be to have a look at the tutorials.
If you plan to write more
complex scripts, which might even be structured in classes and modules, you have to dive into the , the
NOTE: Since Jython and JRuby are based on Java, the modules available for Python or Ruby
might not be available in the Sikulix environment.
So before trying to use any non-standard modules or extension packages,
you have to check, wether they are supported in this SikuliX environment.
NOTE on Java usage The features in SikuliX at the bottom line are implemented with Java.
So you might as well use SikuliX at this Java API level in your Java projects or other Java aware environments (). Though this documentation is targeted at the scripting people it contains basic information about the Java level API as well at places, where there are major differences between the two API level.
Additionally you might look through the JavaDocs
Each chapter in this documentaton briefly describes
a class or a group of methods regarding their basic features.
General usage information are provided and hints, that apply to all methods in
that chapter. We recommend to read carefully before using the related features.
If you are totally new with Sikuli, it might be a good idea to just read
through this documentation sequentially. An alternative way might be to jump to the
chapters that you are interested in by scanning the .
A way in the middle would be reading the core classes in this sequence:
, then , and finally .
After that, you can go to any
places of interest using the
to browse all classes,
methods and functions in alphabetical order.
New Features and major changes (version 1.1.0+)
SikuliX scripting and usage in programming scenarios (preferably Java based)
SikuliX IDE create/run scripts and organize your images
SikuliX API for scripting and Java programming
Miscellanous
Tutorials (not yet revised for version 1.1.0+)
For Developers当前访客身份:游客 [
昨晚,我做了一个梦,梦见下了好大的雨
:这种方法,我没有解决webdriver中识别flash插件并...
:别人的,还不错,最后问是否是以上信息时,记住不...
:老板把剩余的钱补给我了。哈哈,那我就在这里待下...
:写了将近一天,累死我了
:今天把自己写的回顾了一下,觉得。。。。感觉自己...
:这个好解决。。。。
:step1:6L桶装满倒入5L桶,剩余一升; step2:拿...
:引用来自“苏诺”的评论step1,5L水桶装满倒入6...
:step1,5L水桶装满倒入6L水桶中 step2,5L水桶再...
:一个面试题,很有意思
今日访问:2
昨日访问:6
本周访问:26
本月访问:99
所有访问:3226
Windows 7 32 上
selenium 2+sikuli解决swfupload类型上传插件
发表于1年前( 19:53)&&
阅读(333)&|&评论()
0人收藏此文章,
Windows 7 32 上
eclipse+selenium 2+sikuli解决swfupload类型上传插件
公司的电脑是windows 7 32; 测试的产品有网站;还有客户端;
网站上用来解决识别flash 上传插件。selenium 2+sikuli+eclipse
客户端是,PC端应用程序,每一次的回归都我让感到巨累;
为了更高效的工作,so。。。。。。eclipse+sikuli
在MAC环境没有遇到什么困难
但是windows上遇到了好多麻烦。。。。
但是最终还是解决了
安装sikuli,安装完成之后,安装目录在C:\Program Files,将 安装文件复制到c盘下
配置环境变量
安装eclipse,将selenium的java版本的jar包,添加到你是使用的工程里面
在sikuli-ide下面有一个sikuli_script.jar,将它添加到你使用的工程里面
在程序里面添加上用户图片保存的目录,这一点很重要,否则会提示图片找不到
具体程序如下
package&com.client.
import&java.util.concurrent.TimeU
import&mons.piler.P
import&org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameD
import&org.openqa.selenium.*;
import&org.openqa.selenium.WebDriver.*;
import&org.openqa.selenium.firefox.*;
import&org.openqa.selenium.lift.find.ImageF
import&org.python.antlr.PythonParser.if_stmt_
import&org.python.modules.thread.
import&org.sikuli.script.*;
public&class&Client&{
public&static&void&main(String[]&args)&{
System.out.println("helloworld");
System.out.println("hello&world!");
WebDriver&driver&=&new&FirefoxDriver();
String&base_url&=&"/";
driver.get(base_url+"sign_in");
driver.manage().window().maximize();
driver.findElement(By.id("mail")).clear();
driver.findElement(By.id("mail")).sendKeys("account");
driver.findElement(By.id("pwd")).clear();
driver.findElement(By.id("pwd")).sendKeys("password");
Thread.sleep(3000);
}&catch&(InterruptedException&e)&{
//&TODO&Auto-generated&catch&block
e.printStackTrace();
driver.findElement(By.cssSelector("button.btn-grey.btn-regular")).click();
Thread.sleep(3000);
}&catch&(InterruptedException&e)&{
//&TODO&Auto-generated&catch&block
e.printStackTrace();
WebElement&step_1&=&driver.findElement(By.id("submenu")).findElement(By.tagName("a"));
step_1.click();
Thread.sleep(3000);
}&catch&(InterruptedException&e)&{
//&TODO&Auto-generated&catch&block
e.printStackTrace();
//测试flash上传插件模块
ImageLocator&&p&=&new&ImageLocator();
String[]&path&=&p.getImagePath();
ImageLocator.addImagePath("E:\\atuo");//添加用户保存图片的目录
path&=&p.getImagePath();
System.out.println(path.length);
Screen&s&=&new&Screen();
s.click("app.png");
}&catch&(FindFailed&e)&{
//&TODO&Auto-generated&catch&block
e.printStackTrace();
Thread.sleep(6000);
}&catch&(InterruptedException&e)&{
//&TODO&Auto-generated&catch&block
e.printStackTrace();
driver.quit();
更多开发者职位上
1)">1)">1" ng-class="{current:{{currentPage==page}}}" ng-repeat="page in pages"><li class='page' ng-if="(endIndex<li class='page next' ng-if="(currentPage
相关文章阅读用心创造滤镜
扫码下载App
汇聚2000万达人的兴趣社区下载即送20张免费照片冲印
扫码下载App
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
IT女,已婚妈妈!
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(927)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'让自动化变得更easy:sikuli图像识别工具(二)如何在java程序中使用',
blogAbstract:'上一篇文章介绍了sikuli的安装和运行。说一下和运行相关的问题\n***无法运行,提示图片找不到***\n解决:可能是sikuli保存图片的路径包含了中文字符,在系统里面搜索一下这个图片,然后看看路径是否含中文,去除中文字符即可。\n有一种方法可以查看图片保存在哪里了,运行sikuli,随便用个命令截取一个图片,点击图片后\n\n\t\t\t如何在java程序中使用sikuli呢?\n',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:7,
publishTime:9,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'IT女,已婚妈妈!',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}

我要回帖

更多关于 sikuli python 的文章

 

随机推荐