Problem in Input Text or Paste Text when there is words with accent, Ex: "á, é, í, ó".
<?xml version="1.0" encoding="UTF-8"?> <robot generator="Robot 3.0.4 (Python 3.6.5 on win32)" generated="20181221 17:24:09.217"> <suite id="s1" name="Text" source="C:\users\glauc\PycharmProjects\testes-esteira\teste-ocr\text.robot"> <test id="s1-t1" name="OCR"> <kw name="Imagens" type="setup"> <kw name="Add Image Path" library="SikuliLibrary"> <doc>Add image path</doc> <arguments> <arg>${IMAGE_DIR}</arg> </arguments> <msg timestamp="20181221 17:24:12.390" level="INFO">Params: [C:\users\glauc\PycharmProjects\testes-esteira\teste-ocr\imagens]</msg> <status status="PASS" starttime="20181221 17:24:12.380" endtime="20181221 17:24:12.390"></status> </kw> <kw name="Set Min Similarity" library="SikuliLibrary"> <doc>Set Sikuli minSimilarity(0-1)</doc> <arguments> <arg>0.5</arg> </arguments> <msg timestamp="20181221 17:24:12.399" level="INFO">Params: [0.5]</msg> <status status="PASS" starttime="20181221 17:24:12.390" endtime="20181221 17:24:12.399"></status> </kw> <status status="PASS" starttime="20181221 17:24:12.379" endtime="20181221 17:24:12.400"></status> </kw> <kw name="open-notepad"> <kw name="Click" library="SikuliLibrary"> <doc>Click image</doc> <arguments> <arg>start.PNG</arg> </arguments> <msg timestamp="20181221 17:24:13.684" level="INFO">Params: [start.PNG]</msg> <msg timestamp="20181221 17:24:13.684" level="INFO" html="yes"><img src='sikuli_captured/sikuliximage-1545420252812.png'/> [log] CLICK on L(26,1061)@S(0)[0,0 1920x1080] (542 msec)</msg> <status status="PASS" starttime="20181221 17:24:12.401" endtime="20181221 17:24:13.684"></status> </kw> <kw name="Sleep" library="BuiltIn"> <doc>Pauses the test executed for the given time.</doc> <arguments> <arg>3</arg> </arguments> <msg timestamp="20181221 17:24:16.686" level="INFO">Slept 3 seconds</msg> <status status="PASS" starttime="20181221 17:24:13.685" endtime="20181221 17:24:16.686"></status> </kw> <kw name="Input Text" library="SikuliLibrary"> <doc>Input text. Image could be empty</doc> <arguments> <arg>${EMPTY}</arg> <arg>Notepad</arg> </arguments> <msg timestamp="20181221 17:24:17.084" level="INFO">Params: [, Notepad] Input Text: Notepad [log] TYPE "Notepad"</msg> <status status="PASS" starttime="20181221 17:24:16.686" endtime="20181221 17:24:17.084"></status> </kw> <kw name="Press Special Key" library="SikuliLibrary"> <doc>Presses a special keyboard key.</doc> <arguments> <arg>ENTER</arg> </arguments> <msg timestamp="20181221 17:24:17.133" level="INFO">Params: [ENTER] [log] TYPE "#ENTER."</msg> <status status="PASS" starttime="20181221 17:24:17.084" endtime="20181221 17:24:17.133"></status> </kw> <kw name="Sleep" library="BuiltIn"> <doc>Pauses the test executed for the given time.</doc> <arguments> <arg>3</arg> </arguments> <msg timestamp="20181221 17:24:20.135" level="INFO">Slept 3 seconds</msg> <status status="PASS" starttime="20181221 17:24:17.133" endtime="20181221 17:24:20.135"></status> </kw> <status status="PASS" starttime="20181221 17:24:12.401" endtime="20181221 17:24:20.135"></status> </kw> <kw name="type-text"> <kw name="Input Text" library="SikuliLibrary"> <doc>Input text. Image could be empty</doc> <arguments> <arg>${EMPTY}</arg> <arg>Exemple of accent in porteguese: "Município de Florianópolis"</arg> </arguments> <msg timestamp="20181221 17:24:23.578" level="INFO">Params: [, Exemple of accent in porteguese: "Município de Florianópolis"] Input Text: Exemple of accent in porteguese: "Município de Florianópolis" [log] TYPE "Exemple of accent in porteguese: "Município de Florianópolis"" Params: [, Exemple of accent in porteguese: "Município de Florianópolis"] Input Text: Exemple of accent in porteguese: "Município de Florianópolis" [log] TYPE "Exemple of accent in porteguese: "Município de Florianópolis""</msg> <msg timestamp="20181221 17:24:23.578" level="FAIL">java.lang.IllegalArgumentException: Key: Not supported character: í</msg> <status status="FAIL" starttime="20181221 17:24:20.136" endtime="20181221 17:24:23.578"></status> </kw> <status status="FAIL" starttime="20181221 17:24:20.135" endtime="20181221 17:24:23.578"></status> </kw> <kw name="Stop Remote Server" library="SikuliLibrary" type="teardown"> <doc>Stops the remote server.</doc> <msg timestamp="20181221 17:24:23.583" level="INFO">Robot Framework remote server stopping</msg> <status status="PASS" starttime="20181221 17:24:23.580" endtime="20181221 17:24:23.583"></status> </kw> <status status="FAIL" starttime="20181221 17:24:12.379" endtime="20181221 17:24:23.584" critical="yes">java.lang.IllegalArgumentException: Key: Not supported character: í</status> </test> <doc>Teste OCR</doc> <status status="FAIL" starttime="20181221 17:24:09.220" endtime="20181221 17:24:23.585"></status> </suite> <statistics> <total> <stat pass="0" fail="1">Critical Tests</stat> <stat pass="0" fail="1">All Tests</stat> </total> <tag> </tag> <suite> <stat pass="0" fail="1" id="s1" name="Text">Text</stat> </suite> </statistics> <errors> </errors> </robot>
This is an encode issue with python and your editor, check this out (tem umas linhas ali que tu vai precisar adicionar), this will probably solve your problem.