sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22126
[Bug 1195259] Re: [1.0] Intermittent Problem with Paste Function in SIkuli
Hello,
We have resolved this bug by implementing a custom paste class.
The root cause of the problem here is the Windows clipboard locking as
windows locks clipboard after too many consequential uses.
A way to reproduce this error is load a csv file with 1000 variables
Do a simple script to open notepad
and paste all of those variables using for each option in row
You will see that once over 30 variables have been pasted the tool will
experience problems where it will miss the paste, because the memory
will clear but since clipboard is locked it will prevent a new object
from entering into it thus breaking paste function.
Hope this is of help.
Regards.
P.T.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1195259
Title:
[1.0] Intermittent Problem with Paste Function in SIkuli
Status in Sikuli:
In Progress
Bug description:
Hello,
If I run a script that loads data from a CSV, assigns text from the rows to variables and pastes the variables into certain cells of an application that I am automating , I experience an intermittent error, where the application forgets to paste the data:
it however over the field and pastes nothing into it.
I tried it in two ways.
Manually howering, clicking and pasting it all separately.
I also tried to do Region.paste.
Both work, however in certain points the application does not paste
anything into the cell.
I have sufficient time outs set up, which indicates to me that it might not be related to a time out.
Also I have set up the IDE to print the data in the variables to console to make sure that python is assigning the data correctly and it seems that python is fine.
Therefore I think there might be some issue with the paste function
when using it to paste multiple chunks of data, from different
variables over a long period of time.
Sometimes it also mixes up data which it is pasting and pastes a value
of a previously called variable over the value of a currently called
variable.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1195259/+subscriptions
References