rainmanwy / robotframework-SikuliLibrary

Sikuli Robot Framework Library provide keywords for Robot Framework to test UI through Sikuli.
Apache License 2.0
144 stars 61 forks source link

Paste Text keyword may determine "Paste text failed" with package ScreenKeywords line 399 #106

Closed ClaudeJian closed 5 years ago

ClaudeJian commented 5 years ago

Hi, I used robotframework-SikuliLibrary version 1.0.7. The text content is pasted successful but always return "com.github.rainmanwy.robotframework.sikulilib.exceptions.ScreenOperationException: Paste text failed" I think that is related the line 399 of package com.github.rainmanwy.robotframework.sikulilib.keywords https://github.com/rainmanwy/robotframework-SikuliLibrary/blob/master/src/java/com/github/rainmanwy/robotframework/sikulilib/keywords/ScreenKeywords.java

If I'm right,the result is checking whether the text content is read successful.

I also check similar keyword "Input Text" that check the result == 0 then output the error message.

image

rainmanwy commented 5 years ago

@ClaudeJian , the return value of "paste" has changed, thank you very much! I have uploaded the fix version to pypi, you may have a try!

ClaudeJian commented 5 years ago

Hi, Thanks for kindly reply and effective fix. I had verified it with 1.0.8, that is working properly.

alfeducor3 commented 3 years ago

Hi @rainmanwy sorry if I should open a new issue, I was not sure if adding a comment to this closed one was the right approach, but I am getting same exact error using robotframework-SikuliLibrary 2.0.0. Do I need to use a previous version for using Paste Text ?

image

Sikuli_java_stderr_1608561367.9960244.zip

pravinalhat-zymr commented 3 years ago

@alfeducor3 Please use Run Keyword And Ignore Error before Paste Text keyword like,

Run Keyword And Ignore Error Paste Text abc.png Hello

I hope this will help you to get rid of this exception.