[Sikuli-driver] [Question #664446]: Similar Function App.waitVanish('someapp')

2018-02-15 Thread yop
New question #664446 on Sikuli:
https://answers.launchpad.net/sikuli/+question/664446

Hello,

I am looking for a function like  :
waitVanish("image.png", FOREVER)
but for a process or an application .so llike this :-) :
App.waitVanish('someapp', FOREVER)

have you any idea for that function ?
Thanks for your feedback
Regards



-- 
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 #664446]: Similar Function App.waitVanish('someapp')

2018-02-15 Thread yop
Question #664446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664446

Status: Answered => Open

yop is still having a problem:
Thanks for your reply RaiMan.
You mean that "App.waitVanish('someapp', FOREVER)" would 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 #664446]: Similar Function App.waitVanish('someapp')

2018-02-16 Thread yop
Question #664446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664446

yop posted a new comment:
Error is :
"AttributeError: type object 'App' has no attribute 'waitVanish'

Regards

-- 
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 #664446]: Similar Function App.waitVanish('someapp')

2018-02-16 Thread yop
Question #664446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664446

yop posted a new comment:
yes ...but i am not an expert :-)
I looked again the last docs "Sikulix 2014 - 01 2018" (very nice)
i wanted to try the function " "myApp.windows"

for exemple -1-  with Firefox NOT starting and command "if not"
myApp = App('Firefox')
if not myApp.window(): 
  App.open ('gnome-terminal')
wait(1)
--> OK its Working a gnome-terminal Start

for exemple -2- whith Firefox STARTING  and command "if"
myApp = App('Firefox')
for step in range (60):
if  myApp.window(): 
  wait(1)
App.open ('gnome-terminal')
Not OK --> a gnome-terminal starting immediatly.

Regards

-- 
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 #664446]: Similar Function App.waitVanish('someapp')

2018-02-16 Thread yop
Question #664446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664446

yop posted a new comment:
thanks for your reply.
It's looks exaclty i need !

It's looks Working whit FireFox.
My problem comme from whit an another app i lauch it by start a Gnome-Terminal 
and paste "LD LIBRARY PATH ..../myApp "
i think sikuli don't know "myApp" is lauched or not whit this method.

I need to try another method to lauch myApp.

Thanks RaiMan for the help you gave me!

-- 
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 #664446]: Similar Function App.waitVanish('someapp')

2018-03-01 Thread yop
Question #664446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664446

Status: Answered => Open

yop is still having a problem:
Hello,

After some Holidays and few tests. For information the solution for me is the 
following script :
myApp=App('PathtoMyApp')
myApp.open()
wait(1)
for n in range (30):#time out at 30s
   if myApp.window() :  
 wait(1)
   else : break



Whit this script during the loop of 30s, if i kill by myself the
application " myApp", immediatly the loop stops to keep  the script.

If i change "myApp.window()" by "myApp.isRunning()"
--> Its works if the application is stoped by Sikuli Script like "myApp.close()"
--> It doesnt work if i kill the application by myself
...i don't know if my explainations are so clear :-)

Thanks
Yopcitron

-- 
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 #664446]: Similar Function App.waitVanish('someapp')

2018-03-02 Thread yop
Question #664446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664446

Status: Answered => Solved

yop confirmed that the question is solved:
Thanks for your reply, your support and Sikulix !!!

-- 
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 #664446]: Similar Function App.waitVanish('someapp')

2018-03-02 Thread yop
Question #664446 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664446

yop 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


[Sikuli-driver] [Question #669554]: Launch Sikuli Script by Command Line - Error XmlRunner

2018-05-23 Thread yop
New question #669554 on Sikuli:
https://answers.launchpad.net/sikuli/+question/669554

Hello,

I try to launch my Sikuli Script by Command line (Script edited by Sikulix IDE 
on Linux CentOs).

I use this commande :
/PathToSikulix/runsikulix -r /PathToScript/SmokeTest.sikuli

And the result is an Error :
SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
-jar 
/PathToSikulix/sikulix.jar -r 
/PathToScript/SmokeTest.sikuli
[info] 
runcmd: lsb_release -i -r -s 
[error] script [ 
/PathToScript/SmokeTest.sikuli ] 

stopped with error in line 17
[error] ImportError ( No module named xmlrunner )

--
--> Line 17 and next are :
import xmlrunner
reload(xmlrunner)

>From xmlrunner import*
---

If someone has an idea ?
Thanks in advance !








-- 
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 #669559]: Change Display resolution in Script

2018-05-23 Thread yop
New question #669559 on Sikuli:
https://answers.launchpad.net/sikuli/+question/669559

Hello,

i have some scripts to control UI Elements of an application in severals 
displays resolution. in this example "1920x1080" and "1600x900.
For each Script i have the grab of the UI application whith the correct 
resolution.

1- i execute in my script the commande "xrandr -s 1600x900" to adjust my 
display in 1600x900 
1-  my script control UI in displayFormat 1600x900
2- i execute an another Script whith the first commande "xrandr -s 1920x1080" 
to adjust my display in 1920x1080
3-  my script control UI in displayFormat 1920x1080
--> i have some ERROR when Sikuli Lookfor outside the 1600x900 area.
--> It's looks like Sikuli is still looking for in 1600x900. When i have some 
assert Fail, the Grab is in 1600x900.

An idea  to force Sikuli in the new Resolution ? or a Workaround for testing 
severals display resolutions ?
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


Re: [Sikuli-driver] [Question #669559]: Change Display resolution in Script

2018-05-24 Thread yop
Question #669559 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669559

yop posted a new comment:
Just for information i'm working on Sikuli 1.1.1

-- 
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 #669559]: Change Display resolution in Script

2018-05-24 Thread yop
Question #669559 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669559

Status: Answered => Open

yop is still having a problem:
Thanks for your reply,

i try whith "Screen.showMonitors()" . (in this exemple, i launch the  IDE 
SIkuli in 1920x1080)
The message is already (after ""xrandr -s 1600x900", "xrandr -s 1280x800") :
monitor configuration [ 1 Screen(s)] ***
*** Primary is Screen 0
Screen 0: S(0)[0,0 1920x1080]
*** end monitor configuration ***

--> OK whit your description whith IDE Sikuli


i try with "Screen.resetMonitors()" and it does not work too (yet i believed ! 
:-)
The message is already (after ""xrandr -s 1600x900", "xrandr -s 1280x800") :
*** BE AWARE: experimental - might not work ***
[error] Re-evaluation of the monitor setup has been requested
[error] ... Current Region/Screen objects might not be valid any longer
[error] ... Use existing Region/Screen objects only if you know what you are 
doing!
*** new monitor configuration [ 1 Screen(s)] ***
*** Primary is Screen 0
Screen 0: S(0)[0,0 1920x1080]
[error] *** end new monitor configuration ***
***

--> Everytime it says "1920x1080"


My Script is :
def Res1600x900():
App.open('gnome-terminal')
wait(0.5)
paste('xrandr -s 1600x900')
wait(0.5)
type(Key.ENTER)
wait(1)
App.close('gnome-terminal-server') 
wait(1)
Screen.resetMonitors()
wait(1)


--> I try a Workaround whith the commande line and it for that i've open the :
https://answers.launchpad.net/sikuli/+question/669554
:-)

-- 
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 #669554]: Launch Sikuli Script by Command Line - Error XmlRunner

2018-05-24 Thread yop
Question #669554 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669554

Status: Answered => Open

yop is still having a problem:
My Script works in standalon mode

For testing i had put the xmlrunner in :
The Script
The Folder Sikulix 
The Folder Sikulix/lib/site-packages

-- 
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 #669554]: Launch Sikuli Script by Command Line - Error XmlRunner

2018-05-24 Thread yop
Question #669554 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669554

yop gave more information on the question:
OKy i  find the first problem.
In my script my Syspath is in another folder ...that was the problem ..thanks 
Rainman.

But now the script  start the first step and after ..nothing...
The "utils_XOM_DisplayResolutions.Res1280x800()" is executed but the next Step 
"def test_TC_02_02_Res1600x900_UI_Elements_ToolsBar_Flag(self):" not.
---> Problem of "Unittest import, "HtmltestRunner" ?


My Script is :

from sikuli import *
import org.sikuli.script.ImagePath
import os
import sys
import time
import shutil
import subprocess

dir = "/opt/TEST_XOM/01_TestReports/"
if not dir in sys.path: sys.path.append(dir)


import xmlrunner
reload(xmlrunner)

from xmlrunner import *

import utils_XOM_Base
reload(utils_XOM_Base)
import utils_XOM_DisplayResolutions
reload(utils_XOM_DisplayResolutions)

# --> Préciser Nom de la suite :
fp = file(os.path.join(dir, 
"TS_050_XOM_Control_SandBox_Control_UI_Elements.html"), "wb")

import unittest
import HTMLTestRunner
reload(HTMLTestRunner)

Debug.on(0);

import csv
reload(csv)

# --> Préciser Nom de la suite
class TestSuite_XOM_SandBox_Control_UI_Elements(unittest.TestCase):

def setUp(self):
utils_XOM_Base.start()
Debug.info('TestSuite 50 --> START')

def tearDown(self):
utils_XOM_Base.stop()
Debug.info('TestSuite 50 --> STOP')

#---
#Display  1280x800
utils_XOM_DisplayResolutions.Res1280x800()
wait(4)

#---

#ToolsBar-Flag -
def test_TC_02_02_Res1600x900_UI_Elements_ToolsBar_Flag(self):
wait(2)
Settings.MoveMouseDelay=0
Sandbox=App('/opt/XeebraOffside/Sandbox 
/opt/TEST_XOM/05_ConfigsTest/UIControl/UI_Elements/UI_Elements_1/')
Sandbox.open()
wait(1)
click("RunAnalysis.png")  
wait(2)
Reg=Region(0,800,1600,900)
if Reg.exists("UI_ToolsBarFlag_Base1600x900.png",5):
assert True
Sandbox.close()
utils_XOM_DisplayResolutions.Res1920x1080()
wait(0.5)
else:
Sandbox.close()
utils_XOM_DisplayResolutions.Res1920x1080()
wait(0.5)
assert False


# --> Préciser Nom de la suite :
suite = 
unittest.TestLoader().loadTestsFromTestCase(TestSuite_XOM_SandBox_Control_UI_Elements)
# --> Préciser Nom de la suite :
runner = HTMLTestRunner.HTMLTestRunner(stream = fp, title= 
'TestReport_TS_050_XOM_SandBox_Control_UI_Elements', description='TestSuite 
description : Control présence UI éléments ',  verbosity=3, dirTestScreenshots 
= dir)
runner.run(suite)

-- 
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 #669554]: Launch Sikuli Script by Command Line - Error XmlRunner

2018-05-24 Thread yop
Question #669554 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669554

yop posted a new comment:
Sorry I would say "Raiman" !  just because  I listened yesterday the
"Rainman theme music" :-)

-- 
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 #669554]: Launch Sikuli Script by Command Line - Error XmlRunner

2018-05-25 Thread yop
Question #669554 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669554

yop posted a new comment:
No problem ! have a nice holidays, that's the most important think !

-- 
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 #669559]: Change Display resolution in Script

2018-05-25 Thread yop
Question #669559 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669559

yop gave more information on the question:
II just tried whith Sikulix 1.1.2 and 1.1.3 but for me whit Linux CentOs 7.x, 
the command :
"Screen.resetMonitors()"
does not work.
Every time he gives the resolution at the Sikulix Startup like the commande 
"Screen.showMonitors()"

My Workaround is :
My Script import an another Script "change resolution", so that's a problem 
whit execute my script whit command Line.
I need to create a specific script "change resolution1600x900"

Create a 3 bash files 
ChangeResolution1600x900.sh  --> whith my Script to change resolution in 
1600x600
MyScript.sh --> whith my Script
TestUIDisplayResolution.sh --> Whit inside the 2 bashfiles 
"ChangeResolution.sh" + "MyScript.sh"

I execute the bashfile  "TestUIDisplayResolution.sh"
Whit this config my tests are OK.
Not very simple but it's works :-)
Happy when the command ""Screen.resetMonitors()"" will work (for me)

-- 
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 #669554]: Launch Sikuli Script by Command Line - Error XmlRunner

2018-05-25 Thread yop
Question #669554 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669554

Status: Open => Solved

yop confirmed that the question is solved:
I understood why my command line Stop at the first step !
I remembered that in my Script i close all the Gnome-terminal if one or 
severals are open ...so that closed the Sikulix IDE (that we do not see when 
start Script in command line) :-)
Just i add "nohup" before my command and all is ok know.
"nohup  /pathToSikuli/runsikulix -r /pathToSikuliScript/Script"

-- 
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 #686266]: [1.1.3] BlackScreen on Grab but only on one Application

2019-11-26 Thread yop
New question #686266 on Sikuli:
https://answers.launchpad.net/sikuli/+question/686266

Hello,

Question 1 
i updated my sytem because i need to upgrade my Nvidia Board Drivers. (CentOs)
Since this time, my Scripts do not work anymore. :-(
The problem looks sikulix want to search on BlackScreen.
I Try in Sikulix IDE and it is Strange ...
- If i take a print Screen whith "CTRL+SHIFT+2" with any applications -> OK 
- If i take a print Screen whith "CTRL+SHIFT+2" with our application --> NOK 
--> the screen is BLACK with the message "Select an image"
I try to downgrade my Nvidia drivers but same problème.
I try to re install Sikulix IDE but same problème.
Do you have ant idea on this problem ?

Question 2
I try to use the Sikulix 2.0.1 but i have a message about Jython ..does that 
mean that my old scripts will be imcompatible whth next Sikulix versions ?

Thanks in advance for your help and precisions.
Xavier

-- 
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 1863150] [NEW] [error] EditorPane: read returned Width (0) and height (50) cannot be <= 0

2020-02-13 Thread yop
Public bug reported:

Hello,

When i try to open a Sikuli Script from the IDE, i have this error :
[error] EditorPane: read returned Width (0) and height (50) cannot be <= 0

I launch the IDE in debug mode via "nohup ./runsikulix -d 3" and it seems some 
pictures are the problem.
I think it is some picture whith a small size like 2 pixels x 80 pixels.
Do you think the problem comes from that ?
I have another picture whith similar size who are ok.

Sikuli 1.1.3 / IDE  / CentOs
Thanks for your support
Xavier

** Affects: sikuli
 Importance: Undecided
 Status: New

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

Title:
  [error] EditorPane: read returned Width (0) and height (50) cannot be
  <= 0

Status in Sikuli:
  New

Bug description:
  Hello,

  When i try to open a Sikuli Script from the IDE, i have this error :
  [error] EditorPane: read returned Width (0) and height (50) cannot be <= 0

  I launch the IDE in debug mode via "nohup ./runsikulix -d 3" and it seems 
some pictures are the problem.
  I think it is some picture whith a small size like 2 pixels x 80 pixels.
  Do you think the problem comes from that ?
  I have another picture whith similar size who are ok.

  Sikuli 1.1.3 / IDE  / CentOs
  Thanks for your support
  Xavier

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1863150/+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


[Sikuli-driver] [Bug 1863150] Re: [error] EditorPane: read returned Width (0) and height (50) cannot be <= 0

2020-02-14 Thread yop
Thanks for your reply RaiMan.
No time to try the 2.0 now but i will try it !
For information the script works fine whith theses smalls images, it's only 
when i'm loading the script. Impossible to open it.
I try whith the same picture but whith 5 pixels and it is ok.
For know, i will be my "workaround" :-) 

Best Regards.
Xavier

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

Title:
  [error] EditorPane: read returned Width (0) and height (50) cannot be
  <= 0

Status in Sikuli:
  Won't Fix

Bug description:
  Hello,

  When i try to open a Sikuli Script from the IDE, i have this error :
  [error] EditorPane: read returned Width (0) and height (50) cannot be <= 0

  I launch the IDE in debug mode via "nohup ./runsikulix -d 3" and it seems 
some pictures are the problem.
  I think it is some picture whith a small size like 2 pixels x 80 pixels.
  Do you think the problem comes from that ?
  I have another picture whith similar size who are ok.

  Sikuli 1.1.3 / IDE  / CentOs
  Thanks for your support
  Xavier

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1863150/+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