robotframework-SikuliLibrary
robotframework-SikuliLibrary copied to clipboard
`Input Text` looses chars from time to time
*** Settings ***
Library SikuliLibrary
*** Test Cases ***
Test
Input Text \ Test # Types only `Tet` instead of `Test`
Could you have a try "Paste Text"
com.github.rainmanwy.robotframework.sikulilib.exceptions.ScreenOperationException: Paste text failed
How do you do Image could be empty ?
I did it like this:
Paste Text \ My Text to enter
Seems
Input Text \ abcdefghijklmnopqrstuvwxyz
only types abcdefghijkl and the m seems to open the Application Menu.
Possibly that may also be the failure with the s where it could be invoke a Modifier Key + S.
Is there a way to avoid modifier keys while typing text only ?
Interesting: Same happens with pyautogui.
Seems the letters / keys mM and sS are the ones with issues here. Also y, Y and z, Z are reversed.
aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
^^ ^^ ^^^^
doesn't work, seems to | |
open the File Menu | |
work's only sometimes |
reversed
${EMPTY} variable could be used. "Paste Text" should work in new version, and have better performance than "Input Text"
Updated to latest SikuliLibrary 2.0.3 and Paste Text doesn't do anything. You sure it types text or it like the name says paste text from clipboard ?
Also figured out the Input Text doesn't handle special chars as expected. / for example becomes -.
It seems Input Text uses the english keyboard layout and maps it to the selected one ( german in my case ). Which means when I want to type a / which is Shift + 7 then I need to type a & which is the 7 on the english keyboard layout.
This is bad because then when the keyboard layout changes then it is no longer a /.
Obviously the same then also is valid for yYzZ.
yes. sikuli doc mentioned about "type" method, Region.type
could you give more details about "Paste Text". I have tried to install 2.0.3, and use "Paste Text" to execute "Paste Text ${EMPTY} République Française", and did not meet any problems.
I have this workaround:
... - PyAutoGUI.Type Text Nortal Conbat # It is impossible to type `mMsS` ( `sS` ) only sometimes,
... # also `Y` and `Z` are reversed on macOS with SikuliLibrary
... # and PyAutoGui
... > Fix: Use `nN` instead of `mM`
But now I must enter a m how can I do that ?