Comment 3 for bug 1447096

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: OSX 10.10 Yosemite, works for 16 loops then get realy slow

ok, this is my test:

switchApp("Safari")
btnEdit = "btnEdit.png"
r1 = Region(0,0,100,100)
r2 = Region(0,700,100,100)
Settings.MoveMouseDelay = 0

for i in range(50):
  r1.highlight(1)
  start = time.time()
  click(btnEdit)
  click("close.png")
  click(btnEdit)
  click("close.png")
  print i, time.time()-start
  r2.highlight(1)

the output:
 2.63800001144
1 2.6130001545
2 2.60300016403
3 2.61199998856
4 2.6220002174
5 1.57100009918
6 2.8599998951
7 2.5039999485
8 2.54499983788
9 2.56699991226
10 2.52699995041
11 2.51999998093
12 1.54600000381
13 3.0
14 2.55900001526
15 1.60700011253
...
35 2.51200008392
36 1.56399989128
37 3.0
38 2.5569999218
39 2.56699991226
40 1.58899998665
41 1.58599996567
42 2.57099986076
43 2.57699990273
44 1.62299990654
45 2.55599999428
46 2.5039999485
47 2.5569999218
48 2.52699995041
49 2.52800011635

as you can see: constant speed for 50 loop turns

what it does:
at the top of this page it clicks the edit button for the title and then the close button

now I will try without the move mouse delay set to 0