[Sikuli-driver] [Question #665050]: In Eclipse, I just want to execute wait function after every single action performed....Can i mention in single line wait command??

2018-02-27 Thread jerome
New question #665050 on Sikuli:
https://answers.launchpad.net/sikuli/+question/665050

I just have multiple action , i need to wait some interval of time for every 
action.

And also Wait function, Waitvanish is not properly wait for the image in 
Eclipse, then moved to the next action.   

Code:

s.type(descripion);
robot.keyPress(KeyEvent.VK_TAB);
s.wait((double) 0.2);
robot.keyPress(KeyEvent.VK_TAB);
s.wait((double) 0.2);
String version = "1.0";
s.type(version);
s.wait((double) 0.2);
robot.keyPress(KeyEvent.VK_TAB);
s.wait((double) 0.2);
String fileDisposition = row.getCell(7).toString();
s.type(fileDisposition);
robot.keyPress(KeyEvent.VK_TAB);
s.wait((double) 0.2);
.
.
. . . . .etc

-- 
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 #664943]: Pattern Matching precision problem

2018-02-27 Thread GZ
Question #664943 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664943

Status: Open => Solved

GZ confirmed that the question is solved:
OK, it is working for now with different set of images for the findAll 
operation so the precision is working there as well.
I will mark this as solved or now.

-- 
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 #665044]: Constantly Checking for GUI Failure Messages In Test

2018-02-27 Thread Art
New question #665044 on Sikuli:
https://answers.launchpad.net/sikuli/+question/665044

The use case I have is:
The GUI that I am writing a test case for, can at any point throw up an error 
that looks something like "Backend failure, error code xxx, click here to 
continue". As the backend takes a while to process input, a few seconds after 
any point of the test it can go to the error page, at which point I want to 
click to continue.

The current solution I have been trying is basically checking for the error 
message after each action I do, like so:

click(...)
if exists(errorMessageScreen, 5):
click(errorContinueButton)
else:
wait(actualExpectedGuiChange)
click(lastMatch())

There are two problems here: if the error screen takes longer than 5 seconds to 
go up, then the script will fail as it will never find the expected GUI change 
due to the error screen being up, and that it takes an additional 5 seconds in 
between every command, which significantly slows down the test.

Is there sikuli specific functionality that I can do to handle this test case, 
something like making a handler for a particular image appearing that it checks 
every few seconds? Is there anything to do in this case other than launching 
parallel python processes that will just do the clicking on error screens as it 
comes up? 

-- 
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 #665020]: Eclipse had an error when calling sikuli.

2018-02-27 Thread RaiMan
Question #665020 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665020

Status: Open => Answered

RaiMan proposed the following answer:
Upgrade to at least version 1.1.1

Download and run a new setup.

-- 
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 #664943]: Pattern Matching precision problem

2018-02-27 Thread GZ
Question #664943 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664943

GZ gave more information on the question:
In addition to my previous reply, I can still reproduce it.

These give the same result, so 88 vs 81:
hover(Pattern("icon_12.png").similar(0.88))
for y in findAll(Pattern("icon_12.png").similar(0.81)):
hover(y)

I think the harder it is to find an image the more this bug shows up.

Is there a way I could overwrite the matching precision for every
findAll() operation on the operation itself? Because the images are part
of a list and I would prefer to keep one list and just modify the
matching precision on the operation not on the image.

I mean all this is a fix until we can track down what is causing 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