Using emojis with driver.type #2814
Answered
by
mdmintz
benfrankie
asked this question in
Q&A
|
Hi, I'm encountering an issue when using driver.type() with text containing emojis. The error message I receive is: "ChromeDriver only supports characters in the BMP," which I believe is due to the presence of emojis in the text. Here's a snippet of the code that's causing the issue: generated_reply = "Hello! 😊 How can I assist you today?" Is there a way to handle emojis and other non-BMP characters with driver.type() or any workaround you would recommend to avoid triggering detection while entering text in a textarea? Thank you for your help! |
Answered by
mdmintz
May 29, 2024
Replies: 1 comment
|
Convert to unicode first. There's more info on Stack Overflow: https://stackoverflow.com/a/61043442/7058266 |
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Convert to unicode first. There's more info on Stack Overflow: https://stackoverflow.com/a/61043442/7058266