sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30547
Re: [Question #261956]: Overwrite during image capture
Question #261956 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261956
Collin Tobin posted a new comment:
Thanks RaiMan. Unfortunately, in this scenario, I'm not updating my
script at all.
And I'm using my own custom functions to reference images so I can use
the same functions across different devices/platforms, like this:
def customWait(imageName, time, tolerance):
So despite the function/script being correct, quite often I'll have to
update the image in question. I have the script pausing execution when
an image isn't found. I'd like to just recapture the image while in a
paused state without having to manually delete the original.
My current workflow is:
1) Execute tests
2) Pause when image is not found (find failed response set to PROMPT)
3) If I deem a recapture necessary, I have to manually find and delete the original by hand
4) Recapture the new image (making sure the correct script has focus, otherwise the image gets saved in the wrong folder)
5) Resume the test
I'd love to be able to have an "overwrite" setting in the IDE to never
try to preserve an original with the "Name the Screenshot" dialog?
Thanks.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.