comparison sikuli/SS.sikuli/SS.py @ 2:46fb79167a61 tip

Main Code
author Victor Padilla <victor.padilla.mc@gmail.com>
date Mon, 04 May 2015 22:56:18 +0200
parents
children
comparison
equal deleted inserted replaced
1:0f7f611deca4 2:46fb79167a61
1 params = sys.argv[1:]
2 path=params[0]
3 strIMGs=""
4
5 click("1415701611441.png")
6 wait("1415701865784.png",FOREVER)
7 click("1415701911562.png")
8 wait("1415701967254.png",FOREVER)
9 click("1415702019016.png")
10 wait("1415792857317.png",FOREVER)
11
12 click(Pattern("1415963913666.png").targetOffset(47,13))
13 #click("1415885604725.png")
14 type(Key.BACKSPACE)
15 paste(path)
16 click("2014-11-13_13-34-35.png")
17
18
19 click("1415792869010.png")
20
21 for i in range(1,len(params)):
22 strIMGs=strIMGs+" \""+params[i]+"\""
23 strInput=strIMGs
24 strInput=strInput.replace("/","\\")
25 paste(strInput)
26 click("1415792905305.png")
27 click("1415702225757.png")
28 wait("1415792946298.png",FOREVER)
29 wait(1)
30 type(Key.BACKSPACE)
31 click("1415792965001.png")
32 strOUT=path+"SS.xml"
33 strOUT=strOUT.replace("/","\\")
34 paste(strOUT)
35 click("1415798023757.png")
36 click("select.png")
37 click("1415793010197.png")
38 wait(1)
39 if exists("1416922791607.png"):
40 wait(1)
41 if exists("1416922791607.png"):
42 wait(1)
43 if exists("1416922791607.png"):
44 wait(1)
45
46 if exists("1415700984115.png"):
47 click("1415700984115.png")
48 if exists("cerrar.png"):
49 click("cerrar.png")
50 if exists("1415798271832.png"):
51 click("1415706040951.png")
52
53
54
55
56
57