Anyone have command to input emoji?
Input emoji where? With what Library?
I need to input emoji in textbox to validate
Did you try with their unicode code? Full Emoji List, v15.0 (unicode.org)
A textbox with SeleniumLibrary?
I have an example here in https://robotframework.transformidea.com:
https://robotframework.transformidea.com/playground/emoji.zip
I am below error message
WebDriverException: Message: unknown error: ChromeDriver only supports characters in the BMP
(Session info: chrome=113.0.5672.93)
You need to investigate one that.
Maybe is a limitation of Chromedriver, and not a problem on Chrome.
Hi AE,
Which Operating system? I have found every OS has a different input method for emojis
- Windows = Windows Key + .
- Mac = Control + Command + Space
- Linux (Gnome at least) = type the emoji sequence between two
::
, I found this resource helpful
The Linux method works for github as well as other places, so I’d suggest to try it, as if it works it’ll be an easy workaround.
Dave.
I use windows 10
Hi AE,
That ok, I’d just try it anyway, all you’ll loose is a few minutes of your time if it doesn’t work, if it does you get an easy solution.
This should hopefully give you a in your feild
Input Text //path/to/element :+1:
As I said if it doesn’t work you just lost a couple of min trying it, but it might work
Dave.
Thanks Dave.
I see entered in the text box not emoji
Sorry entered as : + 1 :
Oh well, was worth a try, as you can see it work in the forum too.
Hopefully someone else has another idea
Dave.
Maybe a silly question but does that input field support emojis and can you manually add an emoji in?
Yes
Hi AE,
What happens if you type "Test " into that field, then select it and copy, then paste it into the robot script.
- how does it appear in your robot script? (use back ticks to show raw text in the forum → `
text
` - Does that allow you to input the emoji in the field?
Dave.
Damies13, I tried still failing in chrome, got below error msg. Only Chrome, Edge, Android is the issue. It’s working in Firefox, Safari
WebDriverException: Message: unknown error: ChromeDriver only supports characters in the BMP
(Session info: chrome=113.0.5672.93)
Hi AE,
I have some good and bad news,
The Good News:
- It’s a known issue, originally this was an issue in Selenium and also in gecko driver as well, those have been fixed, so you can work around it using Firefox
- It’s not an issue with Selenium Library but an upstream component, so no one here can fix it for you.
The Bad News
- The bad news it’s not been fixed in ChromeDriver yet (this also impacts Edge
- Switching to Browser library probably will give you the same result.
Here’s some links to information I found on the issue:
- The open (unresolved) bug report for ChromeDriver → 2269
- The original selenium bug → 3257
- The stackoverflow thread that lead me there
Dave.
Thanks Dave