Re: [Sikuli-driver] [Question #291572]: "FindFailed" popups for cmd.exe batch files

2016-04-20 Thread RaiMan
Question #291572 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291572

Status: Open => Answered

RaiMan proposed the following answer:
use 1.1.0 and look here:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#running-scripts-and-snippets-from-within-other-scripts-and-run-scripts-one-after-the-other

about a popup on FindFailed:
http://sikulix-2014.readthedocs.org/en/latest/region.html#exception-findfailed

Be aware: the features marked with version 1.1.1 are only available the
next days.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #291544]: ImportError: No module named sikuli.Sikuli

2016-04-20 Thread RaiMan
Question #291544 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291544

Status: Open => Answered

RaiMan proposed the following answer:
what version of Sikuli?
what system?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #291572]: "FindFailed" popups for cmd.exe batch files

2016-04-20 Thread Peter O'Keefe
Question #291572 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291572

Description changed to:
I am running a batch of Sikuli scripts* using cmd.exe on a
separate/dedicated computer (so won't be watching for failures).

I would like to know if/when a script fails.

Is there a way to either force cmd.exe or runsikulix.cmd to create a
popup on Failure?

I know I could go the opposite route- and have successful scripts
popup('Script Name Success')- but can't figure out how to have the popup
triggered by a failure, instead.

Thanks!

*(Also, no idea if I'm running the batch "correctly," just copying and
pasting a list like the following from Notepad into cmd.exe:)

start/i/b/wait c:\Sikuli\runsikulix.cmd -r c:\Sikuli\Tests\Account_Alerts.sikuli
start/i/b/wait c:\Sikuli\runsikulix.cmd -r 
c:\Sikuli\Tests\Add_Payment_Source.sikuli
start/i/b/wait c:\Sikuli\runsikulix.cmd -r c:\Sikuli\Tests\Autopay_Enroll.sikuli
start/i/b/wait c:\Sikuli\runsikulix.cmd -r 
c:\Sikuli\Tests\Card_Activation_Form.sikuli
start/i/b/wait c:\Sikuli\runsikulix.cmd -r 
c:\Sikuli\Tests\DAC_Doc_Request.sikuli
ECHO Ran All Scripts

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #291572]: "FindFailed" popups for cmd.exe batch files

2016-04-20 Thread Peter O'Keefe
New question #291572 on Sikuli:
https://answers.launchpad.net/sikuli/+question/291572

I am running a batch of Sikuli scripts* using cmd.exe on a separate/dedicated 
computer (so won't be watching for failures). 

I would like to know if/when a script fails. 

Is there a way to either force cmd.exe or runsikulix.cmd to create a popup on 
Failure?

I know I could go the opposite route- and have successful scripts popup('Script 
Name Success')- but can't figure out how to have the popup be triggered by a 
failure, instead. 

Thanks!

*(Also, no idea if I'm running the batch "correctly," just copying and pasting 
a list like the following from Notepad into cmd.exe:)

start/i/b/wait c:\Sikuli\runsikulix.cmd -r c:\Sikuli\Tests\Account_Alerts.sikuli
start/i/b/wait c:\Sikuli\runsikulix.cmd -r 
c:\Sikuli\Tests\Add_Payment_Source.sikuli
start/i/b/wait c:\Sikuli\runsikulix.cmd -r c:\Sikuli\Tests\Autopay_Enroll.sikuli
start/i/b/wait c:\Sikuli\runsikulix.cmd -r 
c:\Sikuli\Tests\Card_Activation_Form.sikuli
start/i/b/wait c:\Sikuli\runsikulix.cmd -r 
c:\Sikuli\Tests\DAC_Doc_Request.sikuli
ECHO Ran All Scripts

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #291544]: ImportError: No module named sikuli.Sikuli

2016-04-20 Thread romit
New question #291544 on Sikuli:
https://answers.launchpad.net/sikuli/+question/291544

help regarding this.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271041]: Parameter Markers not working as expected

2016-04-20 Thread Vincent
Question #271041 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271041

Vincent posted a new comment:
Resolved it... found out I was running indeed the older 1.0.1 on the
Linux machine... duh...

Cheers!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271041]: Parameter Markers not working as expected

2016-04-20 Thread Vincent
Question #271041 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271041

Vincent posted a new comment:
Hi,

I am running 1.1.0+ and have a similar issue:

[error] NameError ( name 'select' is not defined ) on Linux only. I use
the 'select'  popup, to choose the application under test. This panel
opens and works on Windows and OSX, but on Linux I get this error...

Can anybody assist please?

Thanks in advance.

Vincent

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1512790] Re: SikuliX hangs after El Capitan upgrade

2016-04-20 Thread midwesthawkeye
I followed the instructions posted here...
http://www.sikulix.com/quickstart.html

And I have SIkuli working on el capitan.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1512790

Title:
  SikuliX hangs after El Capitan upgrade

Status in Sikuli:
  Opinion

Bug description:
  After upgrading to OS X 10.11.1 (El Capitan) SikuliX no longer works.
  I'm using Java 1.8.0_65. Sikuli hangs with this message onscreen:

  SikuliX-IDE is starting

  Interrupt with [command] + [shift] C

  Init Window

  1.1.0-201506180100

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1512790/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #269620]: Sikuli is not booting up in OS X El Capitan

2016-04-20 Thread midwesthawkeye
Question #269620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269620

midwesthawkeye proposed the following answer:
Install Sikuli 1.1 following the directions here..
http://www.sikulix.com/quickstart.html

It will work.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #291440]: [1.1.0] Mac: images captured with shortcut (shift-cmd-4) are not found --- use SikuliX IDE for capturing

2016-04-20 Thread RaiMan
Question #291440 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291440

Summary changed to:
[1.1.0] Mac: images captured with shortcut (shift-cmd-4) are not found --- use 
SikuliX IDE for capturing

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #291440]: difference between my screenshot and what sikuli searches?

2016-04-20 Thread RaiMan
Question #291440 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291440

RaiMan proposed the following answer:
Just tested on my MacBook Pro with Retina and OSX 10.11.4:
- Mac shortcut (shift-cmd-4) produces an image, whose width and height is 
doubled (as expected with Retina)
- using the feature Image.resize(0.5) yields an Image, that is found by SikuliX

my test script:

switchApp("Safari")
wait(1)
setFindFailedResponse(PROMPT)
addImagePath("/Users/raimundhocke/SikuliX/Images")
testLogoSX = "testLogoSX.png" # captured with IDE
print "SX capture: %s" % (exists(testLogoSX, 0))
# found

print "Mac capture: %s" % (exists("testLogo.png", 0)) # captured with mac 
shortcut
# not found

# resize image (w * 0.5, h * 0.5)
testLogo = Image.create("testLogo.png")
print testLogo
testLogo = Image(testLogo.resize(0.5))
print testLogo
print "capture resized: %s" % (exists(testLogo, 0)) # using the resized image
# found

Later I will check with an attached non-Retina display.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #291440]: difference between my screenshot and what sikuli searches?

2016-04-20 Thread RaiMan
Question #291440 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291440

RaiMan proposed the following answer:
With version 1.1.1 (currently still nightly builds, final planned for
end of April) should work in multi-monitor environments (1.1.0 has some
minor problems in special situations with multi-monitor).

- Using the mac shortcut is then forbidden practice?
If you want to name it this way: yes, currently.
The mac shortcut (a feature of the Preview app basically) seems to produce png 
files, that are not compatible, with what SikuliX needs. I have postpone a 
solution to version 2.

You might setup your own capturing tool by writing a short script with a
hotkey and run it from commandline . now you can drive your app to the
needed points, press the hotkey, capture the image, name it using the
input popup in your script and finally save it to the place you need.

Another option is, to let the SikuliX IDE open with a script file, that is 
intended to host the captured images.
There is a convenience feature available:
- in your image script write:
someImage =
- let the cursor at the end of this line
- use the capture hotkey, to capture the image
- it will automatically be named "someImage.png" and stored in the script 
container .sikuli

see the docs:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#importing-other-sikuli-scripts-reuse-code-and-images

to learn about the options you have with a script, that contains images.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1473920] Re: [IDE] run my sikuli project file: “[error] IDE: A non-IOException-problem when trying to save null Error: null”

2016-04-20 Thread tranquillo
Error occurs in Version 1.1.0 until today if a indenting is more left
than the encircling structure.

Example:

class Foo():
  def bar(self):
print "john"  <-- no problem
 print "doh"  <--produce the error

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1473920

Title:
  [IDE] run my sikuli project file: “[error] IDE: A non-IOException-
  problem when trying to save null Error: null”

Status in Sikuli:
  Opinion

Bug description:
  when i use IDE run my sikuli project file,I meet an error which
  named“[error] IDE: A non-IOException-problem when trying to save null
  Error: null”

  my sikuli project name is  Wechat and my file name  is Wechat.
  wechat file are following


  # -*- coding: utf-8 -*-
  from __future__ import with_statement
  from sikuliwrapper import *
  addImagePath(common.cfgImageLibrary)

  class Wechat(BaseLogger):
ROBOT_LIBRARY_SCOPE = 'TEST SUITE'

def __init__(self):
self.appCoordinates = (0, 0, 1024, 768)

def startwechat(self):
click("wechat_icon.png")
wait(5)
click("more.png")
wait(5)
click("switch_account.png")
wait(5)
click("login_type.png")
wait(5)
click("account.png")
wait(5)
Settings.TypeDelay = 1
type("2919658499\n")
wait(5)
click("password.png")
wait(5)
Settings.TypeDelay=1
type("wanshen1\n")
wait(5)
click("login_button.png")   
  def search_public_number(self)
  click("search_button.png")
  wait(2)
Settings.TypeDelay=1
type("睿博研发")
  
  

def runTest(self):
self.startwechat()
self.search_public_number()
  
  if __name__ == '__main__':
Wechat().runTest() 


  
  best regard 
  thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1473920/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #289735]: Run the tested application

2016-04-20 Thread Launchpad Janitor
Question #289735 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/289735

Status: Needs information => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
state without activity for the last 15 days.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #291440]: difference between my screenshot and what sikuli searches?

2016-04-20 Thread f
Question #291440 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291440

f posted a new comment:
Hello RaiMan,

So, several infos, and several questions, in this message:

- I don't use a retina display, but I use an external monitor
- unplugging the external monitor (i.e. being only on the macbook non-retina 
screen) and still using mac shortcut doesn't fix the problem.
- staying on the external monitor but using the IDE to screenshot fixes the 
problem.

So:
- is it normal?
- Using the mac shortcut is then forbidden practice? 
- I'm interested a lot in this retina & external display thing. I definitely 
need the tests to run in the future on different machines. I found nothing 
about that in the doc.. Could you point me out about some ressource on this 
topic?

Thanks again

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #291477]: How to manage multi-instances of a same app (ex: multi-session) ??

2016-04-20 Thread Adrian Pothuaud
Question #291477 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291477

Adrian Pothuaud confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #291477]: How to manage multi-instances of a same app (ex: multi-session) ??

2016-04-20 Thread Adrian Pothuaud
Question #291477 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/291477

Status: Answered => Solved

Adrian Pothuaud confirmed that the question is solved:
Thanks RaiMan,

Using the Application class i've got all i need

Working well but as you said, we need window titles to be different wich
is quite a limitation for the kind of scenarios i want to write, but
i'll deal with it :)

Thanks

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp