← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #153994]: Env.getClipboard() inside a for loop

 

Question #153994 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/153994

    Status: Open => Answered

RaiMan proposed the following answer:
I guess you are using paste() after the Env.getClipboard(), to paste the
clipboard content to another input field.

Sorry, but this bug is known a long time, but has never been reported
until now. I have done it now.

Since the IDE does not do a reset at rerun, it might look like
getClipboard() already fails the first time - but that is only with the
second and other reruns.

So currently you have to do all your getClipboard() calls and store the
contents into a list before the first paste(). And you have to run such
a script from commandline to get a clean environment at rerun.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.