Typing with swedish letters
Hello Sikuli,
Thank you for a great product! We use version X-1.0rc3 together with Robot Framework version 2.6.3.
We use it for testing a product in Sweden, and we need to be able to type text with Swedish letters in it (e.g. å, ä, ö). Here’s what we’re doing now:
from sikuli.Sikuli import *
def etype(self, text):
for char in text:
if char == "\xe5": # if it's å
r = Region(0, 0, 1000, 1000)
elif char == "\xf6": # if it's ö
r = Region(0, 0, 1000, 1000)
else:
Is there a better way to solve this issue? Preferably by using the letters within strings in the code.
Regards,
-Mehrdad
Mehrdad Shahnavazi
Tester, automation
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Mehrdad for more information if necessary.